From 70ab7f237068a43b0c7f440af8a55e351eaf673c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BD=D0=B8=D0=BB?= <119668441+Jiga228@users.noreply.github.com> Date: Mon, 24 Feb 2025 17:33:07 +0700 Subject: [PATCH] Cleaning --- RTTI/RTTI.cpp | 5 ----- RTTI/RTTI.h | 14 -------------- 2 files changed, 19 deletions(-) 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