From a74673e904c8a45d6ad28c51fec033dae1edcc48 Mon Sep 17 00:00:00 2001 From: Rogiel Sulzbach Date: Fri, 14 Sep 2018 11:04:33 -0300 Subject: [PATCH] Removes tinyutf8 support --- .../PacketBuffer/Serializer/TinyUTF8String.h | 34 ------------------- 1 file changed, 34 deletions(-) delete mode 100644 include/PacketBuffer/Serializer/TinyUTF8String.h diff --git a/include/PacketBuffer/Serializer/TinyUTF8String.h b/include/PacketBuffer/Serializer/TinyUTF8String.h deleted file mode 100644 index 2bc5988..0000000 --- a/include/PacketBuffer/Serializer/TinyUTF8String.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// Created by Rogiel on 8/28/2018. -// - -#ifndef PACKETBUFFER_SERIALIZER_TINYUTF8STRING_H -#define PACKETBUFFER_SERIALIZER_TINYUTF8STRING_H - -#include "PacketBuffer/ObjectSerializer.h" -#include - -namespace PacketBuffer { - - /** - * A ObjectSerializer for utf8_string from tinyutf8. - */ - template<> - class ObjectSerializer { - public: - template - static inline void pack(Packer& packer, const utf8_string& string) { - packer(string.cpp_str()); - } - - template - static inline void unpack(Unpacker& unpacker, utf8_string& string) { - std::string rawString; - unpacker(rawString); - string = rawString; - } - }; - -} - -#endif //PACKETBUFFER_SERIALIZER_TINYUTF8STRING_H