diff --git a/main.cc b/main.cc index 9c9a9d3..1f864da 100644 --- a/main.cc +++ b/main.cc @@ -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; diff --git a/src/persistence/JsonLoader.cpp b/src/persistence/JsonLoader.cpp index 6680465..83c06ce 100644 --- a/src/persistence/JsonLoader.cpp +++ b/src/persistence/JsonLoader.cpp @@ -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) { @@ -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); diff --git a/src/services/DotaService.cpp b/src/services/DotaService.cpp index 625f737..5af03e9 100644 --- a/src/services/DotaService.cpp +++ b/src/services/DotaService.cpp @@ -803,23 +803,4 @@ void DotaService::interpretJson(Json::Value data) } discordService->updateActivity(activity); -} - -// }; - -// class DotaService -// { -// static DotaService *instance; - -// int64_t currentMatchTime = 0; -// std::map WorkshopMapsCache; - -// - -// - -// - -// public: - -// DotaService *DotaService::instance = 0; +} \ No newline at end of file