remove O4 memusage calls

This commit is contained in:
cxgeorge 2002-01-17 01:44:58 +00:00
parent 6bfc2cafc7
commit 31529c37fa

View File

@ -38,7 +38,9 @@ TypeHandle RefCountObj<Base>::_type_handle;
INLINE ReferenceCount::
ReferenceCount() {
_ref_count = 0;
#ifndef NDEBUG
MemoryUsage::record_pointer(this);
#endif
}
////////////////////////////////////////////////////////////////////
@ -54,7 +56,9 @@ ReferenceCount() {
INLINE ReferenceCount::
ReferenceCount(const ReferenceCount &) {
_ref_count = 0;
#ifndef NDEBUG
MemoryUsage::record_pointer(this);
#endif
}
////////////////////////////////////////////////////////////////////
@ -91,7 +95,9 @@ operator = (const ReferenceCount &) {
INLINE ReferenceCount::
~ReferenceCount() {
prepare_delete();
#ifndef NDEBUG
MemoryUsage::remove_pointer(this);
#endif
}
////////////////////////////////////////////////////////////////////