remove useless function

This commit is contained in:
CyberL1 2024-05-23 21:45:12 +02:00
parent 5a39a7d471
commit 412e842905

View File

@ -33,7 +33,7 @@ namespace Minecraft_Realms_Emulator.Helpers
public Configuration? GetSetting(string key)
{
var setting = Db.Configuration.Find(FirstCharToLowerCase(key));
var setting = Db.Configuration.Find(key);
if (setting == null) return null;
@ -43,13 +43,5 @@ namespace Minecraft_Realms_Emulator.Helpers
Value = JsonConvert.DeserializeObject(setting.Value)
};
}
private static string FirstCharToLowerCase(string str)
{
if (!string.IsNullOrEmpty(str) && char.IsUpper(str[0]))
return str.Length == 1 ? char.ToLower(str[0]).ToString() : char.ToLower(str[0]) + str[1..];
return str;
}
}
}