mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Remove some unused symbols (#17808)
This commit is contained in:
committed by
GitHub
parent
f9bb5b2447
commit
a07daae770
@@ -132,7 +132,6 @@ constexpr money16 ToMoney16(money64 value)
|
||||
return value == MONEY64_UNDEFINED ? MONEY16_UNDEFINED : static_cast<money16>(value);
|
||||
}
|
||||
|
||||
using EMPTY_ARGS_VOID_POINTER = void();
|
||||
using StringId = uint16_t;
|
||||
|
||||
#define SafeFree(x) \
|
||||
|
||||
@@ -187,8 +187,6 @@ void lightfx_update_buffers(rct_drawpixelinfo* info)
|
||||
_pixelInfo = *info;
|
||||
}
|
||||
|
||||
extern void viewport_paint_setup();
|
||||
|
||||
void lightfx_prepare_light_list()
|
||||
{
|
||||
for (uint32_t light = 0; light < LightListCurrentCountFront; light++)
|
||||
|
||||
@@ -120,7 +120,6 @@ namespace OpenRCT2
|
||||
|
||||
private:
|
||||
void ConfigureDirtyGrid();
|
||||
static void ResetWindowVisbilities();
|
||||
void DrawAllDirtyBlocks();
|
||||
uint32_t GetNumDirtyRows(const uint32_t x, const uint32_t y, const uint32_t columns);
|
||||
void DrawDirtyBlocks(uint32_t x, uint32_t y, uint32_t columns, uint32_t rows);
|
||||
|
||||
@@ -114,15 +114,6 @@ void Object::PopulateTablesFromJson(IReadObjectContext* context, json_t& root)
|
||||
_usesFallbackImages = _imageTable.ReadJson(context, root);
|
||||
}
|
||||
|
||||
rct_object_entry Object::ParseObjectEntry(const std::string& s)
|
||||
{
|
||||
rct_object_entry entry = {};
|
||||
std::fill_n(entry.name, sizeof(entry.name), ' ');
|
||||
auto copyLen = std::min<size_t>(8, s.size());
|
||||
std::copy_n(s.c_str(), copyLen, entry.name);
|
||||
return entry;
|
||||
}
|
||||
|
||||
std::string Object::GetOverrideString(uint8_t index) const
|
||||
{
|
||||
auto legacyIdentifier = GetLegacyIdentifier();
|
||||
|
||||
@@ -159,15 +159,6 @@ struct rct_object_entry
|
||||
};
|
||||
assert_struct_size(rct_object_entry, 0x10);
|
||||
|
||||
struct rct_object_entry_group
|
||||
{
|
||||
void** chunks;
|
||||
rct_object_entry* entries;
|
||||
};
|
||||
#ifdef PLATFORM_32BIT
|
||||
assert_struct_size(rct_object_entry_group, 8);
|
||||
#endif
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
struct rct_ride_filters
|
||||
@@ -312,8 +303,6 @@ protected:
|
||||
*/
|
||||
void PopulateTablesFromJson(IReadObjectContext* context, json_t& root);
|
||||
|
||||
static rct_object_entry ParseObjectEntry(const std::string& s);
|
||||
|
||||
std::string GetOverrideString(uint8_t index) const;
|
||||
std::string GetString(ObjectStringID index) const;
|
||||
std::string GetString(int32_t language, ObjectStringID index) const;
|
||||
@@ -422,8 +411,6 @@ extern int32_t object_entry_group_encoding[];
|
||||
int32_t object_calculate_checksum(const rct_object_entry* entry, const void* data, size_t dataLength);
|
||||
void object_create_identifier_name(char* string_buffer, size_t size, const rct_object_entry* object);
|
||||
|
||||
const rct_object_entry* object_list_find(rct_object_entry* entry);
|
||||
|
||||
void object_entry_get_name_fixed(utf8* buffer, size_t bufferSize, const rct_object_entry* entry);
|
||||
|
||||
void* object_entry_get_chunk(ObjectType objectType, ObjectEntryIndex index);
|
||||
|
||||
@@ -654,18 +654,6 @@ bool IsObjectCustom(const ObjectRepositoryItem* object)
|
||||
}
|
||||
}
|
||||
|
||||
const rct_object_entry* object_list_find(rct_object_entry* entry)
|
||||
{
|
||||
const rct_object_entry* result = nullptr;
|
||||
auto& objRepo = GetContext()->GetObjectRepository();
|
||||
auto item = objRepo.FindObject(entry);
|
||||
if (item != nullptr)
|
||||
{
|
||||
result = &item->ObjectEntry;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
std::unique_ptr<Object> object_repository_load_object(const rct_object_entry* objectEntry)
|
||||
{
|
||||
std::unique_ptr<Object> object;
|
||||
|
||||
Reference in New Issue
Block a user