Skip to content

Commit

Permalink
fix: removed bad codes and garbage
Browse files Browse the repository at this point in the history
  • Loading branch information
andsfonseca committed Aug 3, 2022
1 parent d4848f8 commit 315e0af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
2 changes: 1 addition & 1 deletion main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ enum ArgumentOptions
INSTALL,
};

ArgumentOptions resolveArgumentOption(std::string input)
ArgumentOptions resolveArgumentOption(const std::string input)
{
if (input == "-i" || input == "--install")
return INSTALL;
Expand Down
2 changes: 0 additions & 2 deletions src/persistence/JsonLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ Json::Value JsonLoader::getNode(const Json::Value json, std::string key)
size_t aux = key.find(':');
std::string token = key.substr(0, aux);
key.erase(0, aux + 1);
std::string lastToken = "";

while (key != "" && token != key)
{
Expand All @@ -47,7 +46,6 @@ Json::Value JsonLoader::getNode(const Json::Value json, std::string key)

child = child[token];

lastToken = token;
aux = key.find(':');
token = key.substr(0, aux);
key.erase(0, aux + 1);
Expand Down
21 changes: 1 addition & 20 deletions src/services/DotaService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,23 +803,4 @@ void DotaService::interpretJson(Json::Value data)
}

discordService->updateActivity(activity);
}

// };

// class DotaService
// {
// static DotaService *instance;

// int64_t currentMatchTime = 0;
// std::map<std::string, std::string> WorkshopMapsCache;

//

//

//

// public:

// DotaService *DotaService::instance = 0;
}

0 comments on commit 315e0af

Please sign in to comment.