diff --git a/src/openrct2/object/FootpathObject.cpp b/src/openrct2/object/FootpathObject.cpp index 17df28d69c..d21f8b0412 100644 --- a/src/openrct2/object/FootpathObject.cpp +++ b/src/openrct2/object/FootpathObject.cpp @@ -75,33 +75,6 @@ void FootpathObject::DrawPreview(rct_drawpixelinfo* dpi, int32_t width, int32_t gfx_draw_sprite(dpi, _queueSurfaceDescriptor.PreviewImage, screenCoords + ScreenCoordsXY{ 4, -17 }, 0); } -static RailingEntrySupportType ParseSupportType(const std::string& s) -{ - if (s == "pole") - return RailingEntrySupportType::Pole; - else /* if (s == "box") */ - return RailingEntrySupportType::Box; -} - void FootpathObject::ReadJson(IReadObjectContext* context, json_t& root) { - Guard::Assert(root.is_object(), "FootpathObject::ReadJson expects parameter root to be object"); - - auto properties = root["properties"]; - - if (properties.is_object()) - { - _legacyType.support_type = ParseSupportType(Json::GetString(properties["supportType"])); - _legacyType.scrolling_mode = Json::GetNumber(properties["scrollingMode"]); - - _legacyType.flags = Json::GetFlags( - properties, - { - { "hasSupportImages", RAILING_ENTRY_FLAG_HAS_SUPPORT_BASE_SPRITE }, - { "hasElevatedPathImages", RAILING_ENTRY_FLAG_DRAW_PATH_OVER_SUPPORTS }, - { "editorOnly", FOOTPATH_ENTRY_FLAG_SHOW_ONLY_IN_SCENARIO_EDITOR }, - }); - } - - PopulateTablesFromJson(context, root); } diff --git a/src/openrct2/object/ObjectFactory.cpp b/src/openrct2/object/ObjectFactory.cpp index bb011d0884..eb69fbc847 100644 --- a/src/openrct2/object/ObjectFactory.cpp +++ b/src/openrct2/object/ObjectFactory.cpp @@ -377,8 +377,6 @@ namespace ObjectFactory { if (s == "ride") return ObjectType::Ride; - if (s == "footpath") - return ObjectType::Paths; if (s == "footpath_banner") return ObjectType::Banners; if (s == "footpath_item")