Skip to content

Commit 855d731

Browse files
committed
remove redudndant functions
1 parent f7c058f commit 855d731

File tree

2 files changed

+0
-46
lines changed

2 files changed

+0
-46
lines changed

include/GameAnalytics/GameAnalytics.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ namespace gameanalytics
108108
*/
109109

110110
static std::string getRemoteConfigsValueAsString(std::string const& key, std::string const& defaultValue = "");
111-
static int64_t getRemoteConfigsValueAsInt(std::string const& key, int64_t defaultValue = 0);
112-
static uint64_t getRemoteConfigsValueAsUInt(std::string const& key, uint64_t defaultValue = 0);
113-
static bool getRemoteConfigsValueAsBool(std::string const& key, bool defaultValue = false);
114-
static double getRemoteConfigsValueAsFloat(std::string const& key, double defaultValue = 0.0);
115111
static std::string getRemoteConfigsValueAsJson(std::string const& key);
116112

117113
static bool isRemoteConfigsReady();

source/gameanalytics/GameAnalytics.cpp

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -761,48 +761,6 @@ namespace gameanalytics
761761
return defaultValue;
762762
}
763763

764-
uint64_t GameAnalytics::getRemoteConfigsValueAsUInt(std::string const& key, uint64_t defaultValue)
765-
{
766-
try
767-
{
768-
std::string s = getRemoteConfigsValueAsString(key);
769-
if(!s.empty())
770-
{
771-
return std::stoull(s);
772-
}
773-
}
774-
catch(std::exception& e)
775-
{
776-
(void)e;
777-
}
778-
779-
return defaultValue;
780-
}
781-
782-
double GameAnalytics::getRemoteConfigsValueAsFloat(std::string const& key, double defaultValue)
783-
{
784-
try
785-
{
786-
std::string s = getRemoteConfigsValueAsString(key);
787-
if(!s.empty())
788-
{
789-
return std::stod(s);
790-
}
791-
}
792-
catch(std::exception& e)
793-
{
794-
(void)e;
795-
}
796-
797-
return defaultValue;
798-
}
799-
800-
bool GameAnalytics::getRemoteConfigsValueAsBool(std::string const& key, bool defaultValue)
801-
{
802-
std::string s = getRemoteConfigsValueAsString(key, "false");
803-
return utilities::toLowerCase(s) == "true";
804-
}
805-
806764
std::string GameAnalytics::getRemoteConfigsValueAsJson(std::string const& key)
807765
{
808766
std::string jsonString = getRemoteConfigsValueAsString(key);

0 commit comments

Comments
 (0)