deviceprovider: remove base_class_finalize function
authorTim-Philipp Müller <tim@centricular.com>
Sat, 4 Jun 2016 12:31:58 +0000 (13:31 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 4 Jun 2016 12:35:12 +0000 (13:35 +0100)
It's not going to get called anyway.

https://bugzilla.gnome.org/show_bug.cgi?id=765540

gst/gstdeviceprovider.c

index 363b1b8..e7972bb 100644 (file)
@@ -74,7 +74,6 @@ GQuark __gst_deviceproviderclass_factory = 0;
 static void gst_device_provider_class_init (GstDeviceProviderClass * klass);
 static void gst_device_provider_init (GstDeviceProvider * element);
 static void gst_device_provider_base_class_init (gpointer g_class);
-static void gst_device_provider_base_class_finalize (gpointer g_class);
 static void gst_device_provider_dispose (GObject * object);
 static void gst_device_provider_finalize (GObject * object);
 
@@ -90,7 +89,7 @@ gst_device_provider_get_type (void)
     static const GTypeInfo element_info = {
       sizeof (GstDeviceProviderClass),
       gst_device_provider_base_class_init,
-      gst_device_provider_base_class_finalize,
+      NULL,                     /* base_class_finalize */
       (GClassInitFunc) gst_device_provider_class_init,
       NULL,
       NULL,
@@ -127,14 +126,6 @@ gst_device_provider_base_class_init (gpointer g_class)
 }
 
 static void
-gst_device_provider_base_class_finalize (gpointer g_class)
-{
-  GstDeviceProviderClass *klass = GST_DEVICE_PROVIDER_CLASS (g_class);
-
-  gst_structure_free (klass->metadata);
-}
-
-static void
 gst_device_provider_class_init (GstDeviceProviderClass * klass)
 {
   GObjectClass *gobject_class = (GObjectClass *) klass;