diff options
| author | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2021-10-14 08:55:54 -0700 |
|---|---|---|
| committer | K. S. Ernest (iFire) Lee <ernest.lee@chibifire.com> | 2021-10-14 14:14:26 -0700 |
| commit | 8f0c056431d484502c758b912975c35c7f5653f7 (patch) | |
| tree | 3eb2af7da42d2e58d1efead3f339a613b3667620 /core/string/optimized_translation.cpp | |
| parent | f90047f1583cdb8f4d7346a626b4992406761331 (diff) | |
| download | redot-engine-8f0c056431d484502c758b912975c35c7f5653f7.tar.gz | |
Fix specific warnings issues by Clang
Found by `scons dev=yes` on llvm-mingw.
Diffstat (limited to 'core/string/optimized_translation.cpp')
| -rw-r--r-- | core/string/optimized_translation.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/core/string/optimized_translation.cpp b/core/string/optimized_translation.cpp index 839b7a9c01..f8be564740 100644 --- a/core/string/optimized_translation.cpp +++ b/core/string/optimized_translation.cpp @@ -64,7 +64,6 @@ void OptimizedTranslation::generate(const Ref<Translation> &p_from) { int idx = 0; int total_compression_size = 0; - int total_string_size = 0; for (const StringName &E : keys) { //hash string @@ -102,7 +101,6 @@ void OptimizedTranslation::generate(const Ref<Translation> &p_from) { compressed.write[idx] = ps; total_compression_size += ps.compressed.size(); - total_string_size += src_s.size(); idx++; } @@ -147,15 +145,12 @@ void OptimizedTranslation::generate(const Ref<Translation> &p_from) { uint32_t *btw = (uint32_t *)&btwb[0]; int btindex = 0; - int collisions = 0; for (int i = 0; i < size; i++) { const Map<uint32_t, int> &t = table[i]; if (t.size() == 0) { htw[i] = 0xFFFFFFFF; //nothing continue; - } else if (t.size() > 1) { - collisions += t.size() - 1; } htw[i] = btindex; |
