[Spice-devel] [PATCH spice-gtk 12/14] win-usb: remove useless function

Marc-André Lureau marcandre.lureau at gmail.com
Wed Apr 23 11:09:17 PDT 2014


---
 gtk/win-usb-driver-install.c | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/gtk/win-usb-driver-install.c b/gtk/win-usb-driver-install.c
index 8cca854..bb18ae4 100644
--- a/gtk/win-usb-driver-install.c
+++ b/gtk/win-usb-driver-install.c
@@ -61,20 +61,13 @@ static void spice_win_usb_driver_init(SpiceWinUsbDriver *self)
     self->priv = SPICE_WIN_USB_DRIVER_GET_PRIVATE(self);
 }
 
-static void spice_win_usb_driver_close(SpiceWinUsbDriver *self)
-{
-    if (self->priv->handle) {
-        CloseHandle(self->priv->handle);
-        self->priv->handle = 0;
-    }
-}
-
 static void spice_win_usb_driver_finalize(GObject *gobject)
 {
     SpiceWinUsbDriver *self = SPICE_WIN_USB_DRIVER(gobject);
     SpiceWinUsbDriverPrivate *priv = self->priv;
 
-    spice_win_usb_driver_close(self);
+    if (priv->handle)
+        CloseHandle(priv->handle);
     g_clear_object(&priv->result);
 }
 
-- 
1.8.5.3



More information about the Spice-devel mailing list