diff --git a/src/openrct2/core/DataSerialiserTraits.h b/src/openrct2/core/DataSerialiserTraits.h index 7284f69851..3953709582 100644 --- a/src/openrct2/core/DataSerialiserTraits.h +++ b/src/openrct2/core/DataSerialiserTraits.h @@ -584,34 +584,6 @@ template<> struct DataSerializerTraits_t stream->Write(msg, strlen(msg)); } }; -template<> struct DataSerializerTraits_t -{ - static void encode(OpenRCT2::IStream* stream, const rct12_xyzd8& coord) - { - stream->WriteValue(ByteSwapBE(coord.x)); - stream->WriteValue(ByteSwapBE(coord.y)); - stream->WriteValue(ByteSwapBE(coord.z)); - stream->WriteValue(ByteSwapBE(coord.direction)); - } - - static void decode(OpenRCT2::IStream* stream, rct12_xyzd8& coord) - { - auto x = ByteSwapBE(stream->ReadValue()); - auto y = ByteSwapBE(stream->ReadValue()); - auto z = ByteSwapBE(stream->ReadValue()); - auto d = ByteSwapBE(stream->ReadValue()); - coord = rct12_xyzd8{ x, y, z, d }; - } - - static void log(OpenRCT2::IStream* stream, const rct12_xyzd8& coord) - { - char msg[128] = {}; - snprintf( - msg, sizeof(msg), "rct12_xyzd8(x = %d, y = %d, z = %d, direction = %d)", coord.x, coord.y, coord.z, - coord.direction); - stream->Write(msg, strlen(msg)); - } -}; template<> struct DataSerializerTraits_t {