mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-14 05:25:09 -05:00
Removes some unused functions and variables in spoiler_log.cpp
This commit is contained in:
parent
e3d174cc9b
commit
bba59509f3
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user