validate: Remove some dead code
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 18 Jul 2017 14:47:00 +0000 (10:47 -0400)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Tue, 18 Jul 2017 14:47:00 +0000 (10:47 -0400)
CID 1415457

validate/gst/validate/gst-validate-pipeline-monitor.c

index ef686a1..7bfffe8 100644 (file)
@@ -158,7 +158,6 @@ _check_pad_query_failures (GstPad * pad, GString * str,
     GstValidatePadMonitor ** last_refused_caps_monitor)
 {
   GstValidatePadMonitor *monitor;
-  GstPad *ghost_target = NULL;
 
   monitor = g_object_get_data (G_OBJECT (pad), "validate-monitor");
 
@@ -170,9 +169,6 @@ _check_pad_query_failures (GstPad * pad, GString * str,
   if (monitor->last_refused_caps)
     gst_object_replace ((GstObject **) last_refused_caps_monitor,
         (GstObject *) monitor);
-
-  if (ghost_target)
-    gst_object_unref (ghost_target);
 }
 
 static GstPad *