From b5f71e901ff3d468224630c1293fc35a3a1e5337 Mon Sep 17 00:00:00 2001 From: magumagu Date: Mon, 21 Apr 2014 21:07:02 -0700 Subject: [PATCH] PatchEngine: Remove no-op function LoadDiscList. (The function just pushes elements onto an std::vector which is unused otherwise.) --- Source/Core/Core/PatchEngine.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Source/Core/Core/PatchEngine.cpp b/Source/Core/Core/PatchEngine.cpp index dd9fe7de8e..deb843a6f0 100644 --- a/Source/Core/Core/PatchEngine.cpp +++ b/Source/Core/Core/PatchEngine.cpp @@ -45,7 +45,6 @@ const char *PatchTypeStrings[] = std::vector onFrame; std::map speedHacks; -std::vector discList; void LoadPatchSection(const std::string& section, std::vector& patches, IniFile& globalIni, IniFile& localIni) { @@ -126,23 +125,6 @@ void LoadPatchSection(const std::string& section, std::vector& patches, I } } -static void LoadDiscList(const std::string& section, IniFile& ini) -{ - std::vector lines; - if (!ini.GetLines(section, &lines)) - { - return; - } - - for (const std::string& line : lines) - { - if (!line.empty()) - { - discList.push_back(line); - } - } -} - static void LoadSpeedhacks(const std::string& section, IniFile& ini) { std::vector keys; @@ -190,7 +172,6 @@ void LoadPatches() Gecko::SetActiveCodes(gcodes); LoadSpeedhacks("Speedhacks", merged); - LoadDiscList("DiscList", merged); } void ApplyPatches(const std::vector &patches)