Remove obsolete and broken code from Opaque.
* glib/Opaque.cs: remove bad ctor and noop finalizer
This commit is contained in:
parent
72cca1f93f
commit
dc93b23acd
1 changed files with 0 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue