commit c572efc3a3e078ef968fbe8cc4a9ae88b8e6d423 Author: Nathaniel McCallum <nathan...@natemccallum.com> Date: Thu Jun 10 22:59:17 2010 -0400
remove RefCounter as we don't use it bindings/mono/libgpod-sharp/GPodBase.cs | 29 +---------------------------- 1 files changed, 1 insertions(+), 28 deletions(-) --- diff --git a/bindings/mono/libgpod-sharp/GPodBase.cs b/bindings/mono/libgpod-sharp/GPodBase.cs index cae4e7e..84341c3 100644 --- a/bindings/mono/libgpod-sharp/GPodBase.cs +++ b/bindings/mono/libgpod-sharp/GPodBase.cs @@ -21,39 +21,12 @@ namespace GPod { using System.Collections.Generic; using System.Runtime.InteropServices; -/* internal class RefCounter { - private Dictionary<IntPtr, int> counter = new Dictionary<IntPtr, int>(); - - public void Ref(HandleRef hr) { Ref(HandleRef.ToIntPtr(hr)); } - public void Ref(IntPtr p) { - if (counter.ContainsKey(p)) - counter[p] += 1; - else - counter[p] = 1; - } - - public void Unref(HandleRef hr) { Unref(HandleRef.ToIntPtr(hr)); } - public void Unref(IntPtr p) { - if (counter.ContainsKey(p)) - counter[p] -= 1; - } - - public int Get(HandleRef hr) { Get(HandleRef.ToIntPtr(hr)); } - public int Get(HandleRef hr) { - if (counter.ContainsKey(p)) - return counter[p]; - return -1; - } - }*/ - interface IGPodBase { IntPtr Native { get; } void SetBorrowed(bool borrowed); } public abstract class GPodBase<T> : IGPodBase, IDisposable { - //protected static Dictionary<IntPtr, int> RefCounter = new RefCounter(); - protected static IntPtr StringToPtrUTF8 (string s) { if (s == null) @@ -114,4 +87,4 @@ namespace GPod { Destroy (); } } -} \ No newline at end of file +} ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2