mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Remove unused function (#13724)
This commit is contained in:
committed by
GitHub
parent
1abb81ef81
commit
a95033e55f
@@ -1969,35 +1969,6 @@ private:
|
||||
return result;
|
||||
}
|
||||
|
||||
void GetInvalidObjects(
|
||||
ObjectType objectType, const std::vector<const char*>& entries, std::vector<rct_object_entry>& missingObjects)
|
||||
{
|
||||
auto& objectRepository = OpenRCT2::GetContext()->GetObjectRepository();
|
||||
for (const char* objectName : entries)
|
||||
{
|
||||
rct_object_entry entry;
|
||||
entry.flags = 0x00008000 + EnumValue(objectType);
|
||||
std::copy_n(objectName, DAT_NAME_LENGTH, entry.name);
|
||||
entry.checksum = 0;
|
||||
|
||||
const ObjectRepositoryItem* ori = objectRepository.FindObject(&entry);
|
||||
if (ori == nullptr)
|
||||
{
|
||||
missingObjects.push_back(entry);
|
||||
Console::Error::WriteLine("[%s] Object not found.", objectName);
|
||||
}
|
||||
else
|
||||
{
|
||||
auto object = objectRepository.LoadObject(ori);
|
||||
if (object == nullptr && objectType != ObjectType::SceneryGroup)
|
||||
{
|
||||
missingObjects.push_back(entry);
|
||||
Console::Error::WriteLine("[%s] Object could not be loaded.", objectName);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void ImportTileElements()
|
||||
{
|
||||
gMapBaseZ = 7;
|
||||
|
||||
Reference in New Issue
Block a user