This commit is contained in:
Данил
2025-02-24 17:33:07 +07:00
parent 3a401c4837
commit 70ab7f2370
2 changed files with 0 additions and 19 deletions
-5
View File
@@ -66,8 +66,3 @@ Classes RTTI::GetType(const IRTTI* object)
{ {
return object->type; return object->type;
} }
const char* RTTI::GetTypeStr(const IRTTI* object)
{
return enum_to_string(object->type);
}
-14
View File
@@ -33,16 +33,6 @@ class RTTI final
{ {
RTTI() = default; 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 // That method allow compare given type with real type object
template<class Kind> template<class Kind>
@@ -73,8 +63,4 @@ public:
// That method return real type object in the form of enum value // That method return real type object in the form of enum value
static Classes GetType(const IRTTI* object); static Classes GetType(const IRTTI* object);
// That method return real type in the form of string
[[nodiscard]]
static const char* GetTypeStr(const IRTTI* object);
}; };