From 0e0d594d1abd1818f59ff7b16be828b16fe11d50 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 17 Aug 2003 10:34:45 +0000 Subject: [PATCH] removed unused wxObject::Dump git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/object.h | 10 ---------- src/common/object.cpp | 14 -------------- 2 files changed, 24 deletions(-) diff --git a/include/wx/object.h b/include/wx/object.h index 6882c25f4a..2f5ffd3b5e 100644 --- a/include/wx/object.h +++ b/include/wx/object.h @@ -415,11 +415,6 @@ inline void wxCheckCast(void *ptr) #endif // WXDEBUG && wxUSE_MEMORY_TRACING -#if wxUSE_STD_IOSTREAM && (defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT) -// needed by wxObject::Dump -#include "wx/iosfwrap.h" -#endif - // ---------------------------------------------------------------------------- // wxObject: the root class of wxWindows object hierarchy // ---------------------------------------------------------------------------- @@ -483,11 +478,6 @@ public: void operator delete[] (void* buf, const wxChar*, int ); #endif - -#if wxUSE_STD_IOSTREAM && (defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT) - virtual void Dump(wxSTD ostream& str); -#endif - // ref counted data handling methods // get/set diff --git a/src/common/object.cpp b/src/common/object.cpp index e29f32860c..4ebc1cc9c6 100644 --- a/src/common/object.cpp +++ b/src/common/object.cpp @@ -33,9 +33,6 @@ #endif #if defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT - // for wxObject::Dump - #include "wx/ioswrap.h" - #if defined(__VISAGECPP__) #define DEBUG_PRINTF(NAME) { static int raz=0; \ printf( #NAME " %i\n",raz); fflush(stdout); raz++; } @@ -101,17 +98,6 @@ bool wxObject::IsKindOf(wxClassInfo *info) const return (thisInfo) ? thisInfo->IsKindOf(info) : FALSE ; } -#if wxUSE_STD_IOSTREAM && (defined(__WXDEBUG__) || wxUSE_DEBUG_CONTEXT) -void wxObject::Dump(wxSTD ostream& str) -{ - if (GetClassInfo() && GetClassInfo()->GetClassName()) - str << GetClassInfo()->GetClassName(); - else - str << _T("unknown object class"); -} -#endif - - #if defined(__WXDEBUG__) && wxUSE_MEMORY_TRACING && defined( new ) #undef new #endif -- 2.45.2