mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 04:55:36 +00:00
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
|
@ -36,12 +36,6 @@ namespace GLib {
|
||||||
IntPtr _obj;
|
IntPtr _obj;
|
||||||
bool owned;
|
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)
|
public static Opaque GetOpaque (IntPtr o, Type type, bool owned)
|
||||||
{
|
{
|
||||||
if (o == IntPtr.Zero)
|
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 ()
|
public virtual void Dispose ()
|
||||||
{
|
{
|
||||||
Raw = IntPtr.Zero;
|
Raw = IntPtr.Zero;
|
||||||
|
|
Loading…
Reference in a new issue