Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #297 from magumagu/remove-loaddisclist
PatchEngine: Remove no-op function LoadDiscList.
  • Loading branch information
delroth committed Apr 22, 2014
2 parents 782d271 + b5f71e9 commit 4186eaf
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Source/Core/Core/PatchEngine.cpp
Expand Up @@ -45,7 +45,6 @@ const char *PatchTypeStrings[] =

std::vector<Patch> onFrame;
std::map<u32, int> speedHacks;
std::vector<std::string> discList;

void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, IniFile& globalIni, IniFile& localIni)
{
Expand Down Expand Up @@ -126,23 +125,6 @@ void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, I
}
}

static void LoadDiscList(const std::string& section, IniFile& ini)
{
std::vector<std::string> 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<std::string> keys;
Expand Down Expand Up @@ -190,7 +172,6 @@ void LoadPatches()
Gecko::SetActiveCodes(gcodes);

LoadSpeedhacks("Speedhacks", merged);
LoadDiscList("DiscList", merged);
}

void ApplyPatches(const std::vector<Patch> &patches)
Expand Down

0 comments on commit 4186eaf

Please sign in to comment.