diff options
| author | 2021-03-02 05:39:12 +0000 | |
|---|---|---|
| committer | 2021-03-02 05:56:56 +0000 | |
| commit | 4e488cb54d72fb4a1caa580f6756a6f4687beaf6 (patch) | |
| tree | ae74c5dc12685a23ede19a299753aed30c336960 /src/base.cpp | |
| parent | Move aligned_storage to the utility directory and clean up. (diff) | |
Refactor classbase/CullResult into Cullable/Cullable::Result.
Diffstat (limited to 'src/base.cpp')
| -rw-r--r-- | src/base.cpp | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/src/base.cpp b/src/base.cpp index 5312e5789..063457b8b 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -26,34 +26,6 @@ #include "inspircd.h" #include "base.h" #include <time.h> -#ifdef INSPIRCD_ENABLE_RTTI -#include <typeinfo> -#endif - -classbase::classbase() -{ -#ifdef INSPIRCD_ENABLE_RTTI - if (ServerInstance) - ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::+%s @%p", typeid(*this).name(), (void*)this); -#endif -} - -CullResult classbase::cull() -{ -#ifdef INSPIRCD_ENABLE_RTTI - if (ServerInstance) - ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::-%s @%p", typeid(*this).name(), (void*)this); -#endif - return CullResult(); -} - -classbase::~classbase() -{ -#ifdef INSPIRCD_ENABLE_RTTI - if (ServerInstance) - ServerInstance->Logs.Log("CULLLIST", LOG_DEBUG, "classbase::~%s @%p", typeid(*this).name(), (void*)this); -#endif -} // This trick detects heap allocations of refcountbase objects static void* last_heap = NULL; @@ -189,11 +161,11 @@ Extensible::Extensible() { } -CullResult Extensible::cull() +Cullable::Result Extensible::Cull() { FreeAllExtItems(); culled = true; - return classbase::cull(); + return Cullable::Cull(); } void Extensible::FreeAllExtItems() |
