remove unused gst_element_default_error()
authorBenjamin Otte <otte@redhat.com>
Tue, 2 Mar 2010 15:20:15 +0000 (16:20 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 10 Mar 2010 14:24:11 +0000 (15:24 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=611692

gst/gstelement.c
win32/common/libgstreamer.def

index 0144de5..c5cd1bf 100644 (file)
@@ -293,33 +293,6 @@ gst_element_init (GstElement * element)
 }
 
 /**
- * gst_element_default_error:
- * @object: a #GObject that signalled the error.
- * @orig: the #GstObject that initiated the error.
- * @error: the GError.
- * @debug: an additional debug information string, or %NULL.
- *
- * A default error signal callback to attach to an element.
- * The user data passed to the g_signal_connect is ignored.
- *
- * The default handler will simply print the error string using g_print.
- *
- * MT safe.
- */
-void
-gst_element_default_error (GObject * object, GstObject * source, GError * error,
-    gchar * debug)
-{
-  gchar *name = gst_object_get_path_string (source);
-
-  g_print (_("ERROR: from element %s: %s\n"), name, error->message);
-  if (debug)
-    g_print (_("Additional debug info:\n%s\n"), debug);
-
-  g_free (name);
-}
-
-/**
  * gst_element_release_request_pad:
  * @element: a #GstElement to release the request pad of.
  * @pad: the #GstPad to release.
index 7769761..09d7a88 100644 (file)
@@ -270,7 +270,6 @@ EXPORTS
        gst_element_class_set_details_simple
        gst_element_continue_state
        gst_element_create_all_pads
-       gst_element_default_error
        gst_element_factory_can_sink_caps
        gst_element_factory_can_src_caps
        gst_element_factory_create