From ee910575264182491b7a87ae02673ca6699ef0f5 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Fri, 18 Nov 2011 08:29:31 +0100 Subject: [PATCH] opencv: remove empty finalize implementations --- ext/opencv/gstcvdilateerode.c | 9 --------- ext/opencv/gstcvequalizehist.c | 10 ---------- ext/opencv/gstcvsmooth.c | 9 --------- ext/opencv/gstcvsobel.c | 8 -------- 4 files changed, 36 deletions(-) diff --git a/ext/opencv/gstcvdilateerode.c b/ext/opencv/gstcvdilateerode.c index 446c08d4d3..193f69e541 100644 --- a/ext/opencv/gstcvdilateerode.c +++ b/ext/opencv/gstcvdilateerode.c @@ -117,14 +117,6 @@ gst_cv_dilate_erode_get_type (void) return opencv_dilate_erode_type; } -/* Clean up */ -static void -gst_cv_dilate_erode_finalize (GObject * obj) -{ - G_OBJECT_CLASS (parent_class)->finalize (obj); -} - - /* GObject vmethod implementations */ static void @@ -158,7 +150,6 @@ gst_cv_dilate_erode_class_init (GstCvDilateErodeClass * klass) parent_class = g_type_class_peek_parent (klass); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_cv_dilate_erode_finalize); gobject_class->set_property = gst_cv_dilate_erode_set_property; gobject_class->get_property = gst_cv_dilate_erode_get_property; diff --git a/ext/opencv/gstcvequalizehist.c b/ext/opencv/gstcvequalizehist.c index 9f2ebf2a2a..3a086bed26 100644 --- a/ext/opencv/gstcvequalizehist.c +++ b/ext/opencv/gstcvequalizehist.c @@ -70,13 +70,6 @@ static GstFlowReturn gst_cv_equalize_hist_transform (GstOpencvVideoFilter * filter, GstBuffer * buf, IplImage * img, GstBuffer * outbuf, IplImage * outimg); -/* Clean up */ -static void -gst_cv_equalize_hist_finalize (GObject * obj) -{ - G_OBJECT_CLASS (parent_class)->finalize (obj); -} - /* GObject vmethod implementations */ static void @@ -99,14 +92,11 @@ gst_cv_equalize_hist_base_init (gpointer gclass) static void gst_cv_equalize_hist_class_init (GstCvEqualizeHistClass * klass) { - GObjectClass *gobject_class; GstOpencvVideoFilterClass *gstopencvbasefilter_class; - gobject_class = (GObjectClass *) klass; gstopencvbasefilter_class = (GstOpencvVideoFilterClass *) klass; parent_class = g_type_class_peek_parent (klass); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_cv_equalize_hist_finalize); gstopencvbasefilter_class->cv_trans_func = gst_cv_equalize_hist_transform; } diff --git a/ext/opencv/gstcvsmooth.c b/ext/opencv/gstcvsmooth.c index a40ad35ddb..8cf08b8765 100644 --- a/ext/opencv/gstcvsmooth.c +++ b/ext/opencv/gstcvsmooth.c @@ -119,14 +119,6 @@ static GstFlowReturn gst_cv_smooth_transform_ip (GstOpencvVideoFilter * static GstFlowReturn gst_cv_smooth_transform (GstOpencvVideoFilter * filter, GstBuffer * buf, IplImage * img, GstBuffer * outbuf, IplImage * outimg); -/* Clean up */ -static void -gst_cv_smooth_finalize (GObject * obj) -{ - G_OBJECT_CLASS (parent_class)->finalize (obj); -} - - /* GObject vmethod implementations */ static void @@ -166,7 +158,6 @@ gst_cv_smooth_class_init (GstCvSmoothClass * klass) parent_class = g_type_class_peek_parent (klass); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_cv_smooth_finalize); gobject_class->set_property = gst_cv_smooth_set_property; gobject_class->get_property = gst_cv_smooth_get_property; diff --git a/ext/opencv/gstcvsobel.c b/ext/opencv/gstcvsobel.c index 0e1b33b664..8aaeedd45f 100644 --- a/ext/opencv/gstcvsobel.c +++ b/ext/opencv/gstcvsobel.c @@ -103,13 +103,6 @@ static GstCaps *gst_cv_sobel_transform_caps (GstBaseTransform * trans, static GstFlowReturn gst_cv_sobel_transform (GstOpencvVideoFilter * filter, GstBuffer * buf, IplImage * img, GstBuffer * outbuf, IplImage * outimg); -/* Clean up */ -static void -gst_cv_sobel_finalize (GObject * obj) -{ - G_OBJECT_CLASS (parent_class)->finalize (obj); -} - /* GObject vmethod implementations */ static void @@ -143,7 +136,6 @@ gst_cv_sobel_class_init (GstCvSobelClass * klass) parent_class = g_type_class_peek_parent (klass); - gobject_class->finalize = GST_DEBUG_FUNCPTR (gst_cv_sobel_finalize); gobject_class->set_property = gst_cv_sobel_set_property; gobject_class->get_property = gst_cv_sobel_get_property;