mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
refactor: removed unused code
This commit is contained in:
parent
efd7c3cec9
commit
a733c98259
@ -114,19 +114,6 @@ json::value Scheduler::getCommandModeOptions() {
|
||||
return json;
|
||||
}
|
||||
|
||||
/* Convert from string to alarm state enum value */
|
||||
ALARM_STATE::ALARM_STATEs stringToAlarmState(const std::wstring& state) {
|
||||
if (state == L"red") {
|
||||
return ALARM_STATE::RED;
|
||||
} else if (state == L"green") {
|
||||
return ALARM_STATE::GREEN;
|
||||
} else if (state == L"auto") {
|
||||
return ALARM_STATE::AUTO;
|
||||
} else {
|
||||
throw invalid_argument("Stato non valido: " + std::string(state.begin(), state.end()));
|
||||
}
|
||||
}
|
||||
|
||||
bool Scheduler::checkSpawnPoints(int spawnPoints, string coalition)
|
||||
{
|
||||
if (!getRestrictSpawns()) return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user