diff --git a/RTTI/RTTI.cpp b/RTTI/RTTI.cpp index bd6f04c..48f5855 100644 --- a/RTTI/RTTI.cpp +++ b/RTTI/RTTI.cpp @@ -66,8 +66,3 @@ Classes RTTI::GetType(const IRTTI* object) { return object->type; } - -const char* RTTI::GetTypeStr(const IRTTI* object) -{ - return enum_to_string(object->type); -} diff --git a/RTTI/RTTI.h b/RTTI/RTTI.h index 006fcbd..f61d16d 100644 --- a/RTTI/RTTI.h +++ b/RTTI/RTTI.h @@ -33,16 +33,6 @@ class RTTI final { RTTI() = default; - // Convert enum to string - [[nodiscard]] - static const char* enum_to_string(const Classes type) - { - switch (type) - { - case Classes::IRTTI: return "IRTTI"; - default: return "Undefined"; - } - } // That method allow compare given type with real type object template @@ -73,8 +63,4 @@ public: // That method return real type object in the form of enum value static Classes GetType(const IRTTI* object); - - // That method return real type in the form of string - [[nodiscard]] - static const char* GetTypeStr(const IRTTI* object); }; \ No newline at end of file