From d2c1cf886dcea8df7d7d5bd6b9323d90655b9412 Mon Sep 17 00:00:00 2001 From: Rolf Madsen Date: Mon, 19 Dec 2016 07:53:52 +0100 Subject: [PATCH] Removed refcount --- src/runtime/pyobject.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/runtime/pyobject.cs b/src/runtime/pyobject.cs index ba44c0c21..781f6313d 100644 --- a/src/runtime/pyobject.cs +++ b/src/runtime/pyobject.cs @@ -126,17 +126,7 @@ protected virtual void Dispose(bool disposing) disposed = true; } } - - public long RefCount - { - get - { - if(!disposed) - return Runtime.Refcount(obj); - return -1; - } - } - + public void Dispose() { Dispose(true);