Removes some unused functions and variables in spoiler_log.cpp

This commit is contained in:
Christopher Leggett 2022-09-07 21:23:41 -04:00
parent e3d174cc9b
commit bba59509f3
No known key found for this signature in database
GPG Key ID: 7093AE5FF7037D79

View File

@ -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);