Kill UnwrappedObject obsolete code.

* glib/Makefile.am: remove file
* glib/UnwrappedObject.cs: remove
* glib/Value.cs: remove obsolete method
This commit is contained in:
Mike Kestner 2011-02-10 20:56:30 -06:00
parent dc93b23acd
commit d33520b9c6
3 changed files with 0 additions and 47 deletions

View File

@ -69,7 +69,6 @@ sources = \
TypeConverter.cs \
TypeFundamentals.cs \
TypeInitializerAttribute.cs \
UnwrappedObject.cs \
ValueArray.cs \
Value.cs \
Variant.cs

View File

@ -1,40 +0,0 @@
// UnwrappedObject.cs - Class which holds an IntPtr without resolving it:
//
// Author: Rachel Hestilow <hestilow@ximian.com>
//
// Copyright (c) 2002 Rachel Hestilow
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of version 2 of the Lesser GNU General
// Public License as published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this program; if not, write to the
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
// Boston, MA 02111-1307, USA.
namespace GLib {
using System;
using System.Runtime.InteropServices;
[Obsolete ("Replaced by direct object-type casts to/from GLib.Value")]
public class UnwrappedObject {
IntPtr obj;
public UnwrappedObject (IntPtr obj) {
this.obj = obj;
}
public static explicit operator System.IntPtr (UnwrappedObject obj) {
return obj.obj;
}
}
}

View File

@ -300,12 +300,6 @@ namespace GLib {
return GLib.Object.GetObject (g_value_get_object (ref val), false);
}
[Obsolete ("Replaced by GLib.Object cast")]
public static explicit operator GLib.UnwrappedObject (Value val)
{
return new UnwrappedObject (g_value_get_object (ref val));
}
public static explicit operator string[] (Value val)
{
IntPtr native_array = g_value_get_boxed (ref val);