From bc0aee1328a1a73cceb5ff5345da3d77a754d4db Mon Sep 17 00:00:00 2001 From: Bertrand Lorentz Date: Sun, 21 Apr 2013 16:42:18 +0200 Subject: [PATCH] gdk: Remove invalid Global.DevicesList method The native function gdk_devices_list is gone, device handling is now handled through DeviceManager. --- gdk/Global.cs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/gdk/Global.cs b/gdk/Global.cs index a129d9033..37255aff8 100644 --- a/gdk/Global.cs +++ b/gdk/Global.cs @@ -26,21 +26,6 @@ namespace Gdk { public partial class Global { - [DllImport ("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)] - static extern IntPtr gdk_devices_list (); - - public static Device[] DevicesList () - { - IntPtr raw_ret = gdk_devices_list (); - if (raw_ret == IntPtr.Zero) - return new Device [0]; - GLib.List list = new GLib.List(raw_ret); - Device[] result = new Device [list.Count]; - for (int i = 0; i < list.Count; i++) - result [i] = list [i] as Device; - return result; - } - [DllImport ("libgdk-win32-3.0-0.dll", CallingConvention = CallingConvention.Cdecl)] static extern IntPtr gdk_list_visuals ();