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:
committed by
Ted John
parent
a48976cc6b
commit
163e314379
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user