1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 06:23:04 +01:00

Remove unused or set-but-not-read variables

This commit is contained in:
Michał Janiszewski
2016-09-07 12:39:29 +00:00
committed by Ted John
parent a48976cc6b
commit 163e314379
22 changed files with 12 additions and 99 deletions

View File

@@ -704,16 +704,13 @@ void Network::SaveGroups()
}
json_object_set_new(jsonGroupsCfg, "default_group", json_integer(default_group));
json_object_set_new(jsonGroupsCfg, "groups", jsonGroups);
bool result;
try
{
Json::WriteToFile(path, jsonGroupsCfg, JSON_INDENT(4) | JSON_PRESERVE_ORDER);
result = true;
}
catch (Exception ex)
{
log_error("Unable to save %s: %s", path, ex.GetMessage());
result = false;
}
json_decref(jsonGroupsCfg);