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

Jonathon Jongsma jjongsma at redhat.com
Wed Apr 23 14:30:48 PDT 2014


ACK

----- Original Message -----
> From: "Marc-André Lureau" <marcandre.lureau at gmail.com>
> To: spice-devel at freedesktop.org
> Sent: Wednesday, April 23, 2014 1:09:17 PM
> Subject: [Spice-devel] [PATCH spice-gtk 12/14] win-usb: remove useless	function
> 
> ---
>  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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 


More information about the Spice-devel mailing list