diff options
author | Ignacio Casal Quinteiro <icq@gnome.org> | 2014-12-22 10:20:51 +0100 |
---|---|---|
committer | Ignacio Casal Quinteiro <icq@gnome.org> | 2014-12-22 10:22:01 +0100 |
commit | 31dad03767c8b0b85822f37a63fdcd1c142b5235 (patch) | |
tree | cb205f6082d092c7d91ebfb5ca7b5197a720ea3b /gusb/gusb-device-list.c | |
parent | 8b368eda0435f41bf2360412cea4908aa345030b (diff) | |
download | gusb-31dad03767c8b0b85822f37a63fdcd1c142b5235.tar.gz |
Some cleanup, no need to do the casting
Diffstat (limited to 'gusb/gusb-device-list.c')
-rw-r--r-- | gusb/gusb-device-list.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gusb/gusb-device-list.c b/gusb/gusb-device-list.c index 180de27..6442df6 100644 --- a/gusb/gusb-device-list.c +++ b/gusb/gusb-device-list.c @@ -58,12 +58,6 @@ static guint signals[LAST_SIGNAL] = { 0 }; G_DEFINE_TYPE_WITH_PRIVATE (GUsbDeviceList, g_usb_device_list, G_TYPE_OBJECT); -static void -g_usb_device_list_finalize (GObject *object) -{ - G_OBJECT_CLASS (g_usb_device_list_parent_class)->finalize (object); -} - /** * g_usb_device_list_get_property: **/ @@ -139,7 +133,6 @@ g_usb_device_list_class_init (GUsbDeviceListClass *klass) GParamSpec *pspec; GObjectClass *object_class = (GObjectClass *) klass; - object_class->finalize = g_usb_device_list_finalize; object_class->get_property = g_usb_device_list_get_property; object_class->set_property = g_usb_device_list_set_property; @@ -286,7 +279,5 @@ g_usb_device_list_find_by_vid_pid (GUsbDeviceList *list, GUsbDeviceList * g_usb_device_list_new (GUsbContext *context) { - GObject *obj; - obj = g_object_new (G_USB_TYPE_DEVICE_LIST, "context", context, NULL); - return G_USB_DEVICE_LIST (obj); + return g_object_new (G_USB_TYPE_DEVICE_LIST, "context", context, NULL); } |