diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-25 12:29:48 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-25 12:29:48 +0000 |
| commit | 1cd453db14c80988a7cd29bbc9ea1f70e45ad513 (patch) | |
| tree | 0973ed0df422a1ef8c6b4018a70a1b8e59385f9e /src/string_set.cpp | |
| parent | 3b5932699cce49504fc555d32f944de48d30dd35 (diff) | |
Remove unneeded disabled warnings for MSVC
Diffstat (limited to 'src/string_set.cpp')
| -rw-r--r-- | src/string_set.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/string_set.cpp b/src/string_set.cpp index 9e44e1b1e..a6700839d 100644 --- a/src/string_set.cpp +++ b/src/string_set.cpp @@ -61,22 +61,6 @@ gb_internal StringSetFindResult string_set__find(StringSet *s, HashKey key) { return fr; } -gb_internal StringSetFindResult string_set__find_from_entry(StringSet *s, StringSetEntry *e) { - StringSetFindResult fr = {-1, -1, -1}; - if (s->hashes.count > 0) { - fr.hash_index = e->key.key % s->hashes.count; - fr.entry_index = s->hashes[fr.hash_index]; - while (fr.entry_index >= 0) { - if (&s->entries[fr.entry_index] == e) { - return fr; - } - fr.entry_prev = fr.entry_index; - fr.entry_index = s->entries[fr.entry_index].next; - } - } - return fr; -} - gb_internal b32 string_set__full(StringSet *s) { return 0.75f * s->hashes.count <= s->entries.count; } |