1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

Remove unused variable

This commit is contained in:
Dydzio
2023-07-15 20:03:07 +02:00
parent ad66acdd79
commit 1711b3848f

View File

@@ -221,13 +221,6 @@ int main(int argc, char * argv[])
else if(s->isNull()) else if(s->isNull())
s->Integer() = defaultValue; s->Integer() = defaultValue;
}; };
auto setSettingString = [](std::string key, std::string arg, std::string defaultValue) {
Settings s = settings.write(vstd::split(key, "/"));
if(::vm.count(arg))
s->String() = ::vm[arg].as<std::string>();
else if(s->isNull())
s->String() = defaultValue;
};
setSettingBool("session/onlyai", "onlyAI"); setSettingBool("session/onlyai", "onlyAI");
if(vm.count("headless")) if(vm.count("headless"))