1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-17 20:13:07 +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

@@ -110,8 +110,6 @@ public:
bool LoadObjects(const rct_object_entry * entries, size_t count) override
{
IObjectRepository * objectRepository = GetObjectRepository();
// Find all the required objects
size_t numRequiredObjects;
auto requiredObjects = new const ObjectRepositoryItem *[OBJECT_ENTRY_COUNT];
@@ -159,8 +157,6 @@ public:
Object * loadedObject = ori->LoadedObject;
if (loadedObject != nullptr)
{
size_t index = GetLoadedObjectIndex(loadedObject);
UnloadObject(loadedObject);
numObjectsUnloaded++;
}