From bba59509f386ccf627d0bb5e74032325505a3045 Mon Sep 17 00:00:00 2001 From: Christopher Leggett Date: Wed, 7 Sep 2022 21:23:41 -0400 Subject: [PATCH] Removes some unused functions and variables in `spoiler_log.cpp` --- .../randomizer/3drando/spoiler_log.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp index f1b344450..2f8bfa245 100644 --- a/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp +++ b/soh/soh/Enhancements/randomizer/3drando/spoiler_log.cpp @@ -36,7 +36,6 @@ namespace { std::string placementtxt; } // namespace -static RandomizerHash randomizerHash; static SpoilerData spoilerData; void GenerateHash() { @@ -52,20 +51,6 @@ void GenerateHash() { // spoilerData = { 0 }; } -const RandomizerHash& GetRandomizerHash() { - return randomizerHash; -} - -// Returns the randomizer hash as concatenated string, separated by comma. -const std::string GetRandomizerHashAsString() { - std::string hash = ""; - for (const std::string& str : randomizerHash) { - hash += str + ", "; - } - hash.erase(hash.length() - 2); // Erase last comma - return hash; -} - const SpoilerData& GetSpoilerData() { return spoilerData; } @@ -706,7 +691,6 @@ const char* SpoilerLog_Write(int language) { rootNode->SetAttribute("version", Settings::version.c_str()); rootNode->SetAttribute("seed", Settings::seed.c_str()); - rootNode->SetAttribute("hash", GetRandomizerHashAsString().c_str()); jsonData.clear(); @@ -767,7 +751,6 @@ bool PlacementLog_Write() { rootNode->SetAttribute("version", Settings::version.c_str()); rootNode->SetAttribute("seed", Settings::seed.c_str()); - rootNode->SetAttribute("hash", GetRandomizerHashAsString().c_str()); // WriteSettings(placementLog, true); // Include hidden settings. // WriteExcludedLocations(placementLog);