--- deliantra/server/common/utils.C 2006/09/16 22:24:12 1.16 +++ deliantra/server/common/utils.C 2006/11/17 19:40:53 1.17 @@ -547,6 +547,23 @@ ///////////////////////////////////////////////////////////////////////////// +#if 0 +refcounted *refcounted::rc_first; + +refcounted::refcounted () +{ + refcnt = 0; + rc_next = rc_first; + rc_first = this; +} + +refcounted::~refcounted () +{ + assert (!rc_next); + assert (!refcnt); +} +#endif + void *alloc (int s) throw (std::bad_alloc) { void *p = g_slice_alloc (s); @@ -581,3 +598,4 @@ memcpy (dst, src, len + 1); } +