From fe9fd5c5cef67964af158a1e3e3cd65899ebb34d Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Mon, 18 Oct 2021 18:51:05 +0100 Subject: [PATCH] Remove unused variables --- core/compressed_translation.cpp | 5 ----- platform/iphone/export/export.cpp | 2 -- platform/osx/export/export.cpp | 2 -- 3 files changed, 9 deletions(-) diff --git a/core/compressed_translation.cpp b/core/compressed_translation.cpp index 5219f5a0a6b..008339e5863 100644 --- a/core/compressed_translation.cpp +++ b/core/compressed_translation.cpp @@ -62,7 +62,6 @@ void PHashTranslation::generate(const Ref &p_from) { int idx = 0; int total_compression_size = 0; - int total_string_size = 0; for (List::Element *E = keys.front(); E; E = E->next()) { //hash string @@ -100,7 +99,6 @@ void PHashTranslation::generate(const Ref &p_from) { compressed.write[idx] = ps; total_compression_size += ps.compressed.size(); - total_string_size += src_s.size(); idx++; } @@ -145,15 +143,12 @@ void PHashTranslation::generate(const Ref &p_from) { uint32_t *btw = (uint32_t *)&btwb[0]; int btindex = 0; - int collisions = 0; for (int i = 0; i < size; i++) { const Map &t = table[i]; if (t.size() == 0) { htw[i] = 0xFFFFFFFF; //nothing continue; - } else if (t.size() > 1) { - collisions += t.size() - 1; } htw[i] = btindex; diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index d8ce55ac516..b73f3ec7e82 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -1699,7 +1699,6 @@ Error EditorExportPlatformIOS::export_project(const Ref &p_p } bool found_library = false; - int total_size = 0; const String project_file = "godot_ios.xcodeproj/project.pbxproj"; Set files_to_parse; @@ -1795,7 +1794,6 @@ Error EditorExportPlatformIOS::export_project(const Ref &p_p file = file.replace("godot_ios", binary_name); print_line("ADDING: " + file + " size: " + itos(data.size())); - total_size += data.size(); /* write it into our folder structure */ file = dest_dir + file; diff --git a/platform/osx/export/export.cpp b/platform/osx/export/export.cpp index dc6043c9590..33f0bfa894c 100644 --- a/platform/osx/export/export.cpp +++ b/platform/osx/export/export.cpp @@ -647,7 +647,6 @@ Error EditorExportPlatformOSX::export_project(const Ref &p_p // Now process our template. bool found_binary = false; - int total_size = 0; Vector dylibs_found; while (ret == UNZ_OK && err == OK) { @@ -735,7 +734,6 @@ Error EditorExportPlatformOSX::export_project(const Ref &p_p } print_line("ADDING: " + file + " size: " + itos(data.size())); - total_size += data.size(); // Write it into our application bundle. file = tmp_app_path_name.plus_file(file);