mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-07 15:33:20 +02: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;
|
||||
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 New Issue
Block a user