Commit ef6cfef1 authored by daniel_e's avatar daniel_e
Browse files

Remove already unused debug code. The reference counting is rock solid thanks

to SharedPtr<>.
parent ef6cad3d
2002-11-15 Daniel Elstner <daniel.elstner@gmx.net>
* src/sharedptr.cc: Remove already unused debug code. The
reference counting is rock solid thanks to SharedPtr<>.
2002-11-15 Daniel Elstner <daniel.elstner@gmx.net>
* src/sharedptr.h (SharedObject): Remove the namespace prefix from
......
......@@ -18,16 +18,8 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#include <glib.h>
#include "sharedptr.h"
namespace
{
int instance_count = 0;
} // anonymous namespace
#include <glib.h>
namespace Util
......@@ -36,16 +28,10 @@ namespace Util
SharedObject::SharedObject()
:
refcount_ (0)
{
++instance_count;
//g_print("SharedObject ctor: %d\n", instance_count);
}
{}
SharedObject::~SharedObject()
{
--instance_count;
//g_print("SharedObject dtor: %d\n", instance_count);
g_return_if_fail(refcount_ == 0);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment