Remove obsolete and broken code from Opaque.

* glib/Opaque.cs: remove bad ctor and noop finalizer
This commit is contained in:
Mike Kestner 2011-02-10 20:52:54 -06:00
parent 72cca1f93f
commit dc93b23acd

View file

@ -36,12 +36,6 @@ namespace GLib {
IntPtr _obj;
bool owned;
[Obsolete ("Use more explicit overload. This method always returns null")]
public static Opaque GetOpaque (IntPtr o)
{
return null;
}
public static Opaque GetOpaque (IntPtr o, Type type, bool owned)
{
if (o == IntPtr.Zero)
@ -88,12 +82,6 @@ namespace GLib {
}
}
~Opaque ()
{
// for compat. All subclasses should have
// generated finalizers if needed now.
}
public virtual void Dispose ()
{
Raw = IntPtr.Zero;