aboutsummaryrefslogtreecommitdiff
path: root/src/ptr_set.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-03 18:39:37 +0000
committergingerBill <bill@gingerbill.org>2023-01-03 18:39:37 +0000
commitec69101101d56e90ee183e449eb5bb3605e3afbe (patch)
tree745a75d6e0ce0446bcc53963560e48531c0131f4 /src/ptr_set.cpp
parent17fa8cb6ef4424e4c7cff2439e2d52220f440660 (diff)
Convert `minimum_dependency_type_info_set` to use a `PtrMap`
Diffstat (limited to 'src/ptr_set.cpp')
-rw-r--r--src/ptr_set.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/ptr_set.cpp b/src/ptr_set.cpp
index 9b8b678f8..f730a47ff 100644
--- a/src/ptr_set.cpp
+++ b/src/ptr_set.cpp
@@ -12,7 +12,6 @@ struct PtrSetEntry {
template <typename T>
struct PtrSet {
-
Slice<MapIndex> hashes;
Array<PtrSetEntry<T>> entries;
};
@@ -154,15 +153,6 @@ gb_internal gb_inline bool ptr_set_exists(PtrSet<T> *s, T ptr) {
return index != MAP_SENTINEL;
}
-template <typename T>
-gb_internal gb_inline isize ptr_set_entry_index(PtrSet<T> *s, T ptr) {
- isize index = ptr_set__find(s, ptr).entry_index;
- if (index != MAP_SENTINEL) {
- return index;
- }
- return -1;
-}
-
// Returns true if it already exists
template <typename T>
gb_internal T ptr_set_add(PtrSet<T> *s, T ptr) {