From 41d86292c9cfa8a28ccc88fc7e3d74f93ce5b864 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Mon, 19 Aug 2013 15:12:48 -0400 Subject: [PATCH] formatter: Remove the unsed can_save_uri vmethod This virtual method does not make much sense right now, we might need it again later, but most probably with a sensibly different API so removing it for now. --- ges/ges-formatter.c | 12 ------------ ges/ges-formatter.h | 3 --- 2 files changed, 15 deletions(-) diff --git a/ges/ges-formatter.c b/ges/ges-formatter.c index 7d0751b57f..fba305bee6 100644 --- a/ges/ges-formatter.c +++ b/ges/ges-formatter.c @@ -48,8 +48,6 @@ struct _GESFormatterPrivate static void ges_formatter_dispose (GObject * object); static gboolean default_can_load_uri (GESFormatter * dummy_instance, const gchar * uri, GError ** error); -static gboolean default_can_save_uri (GESFormatter * dummy_instance, - const gchar * uri, GError ** error); /* GESExtractable implementation */ static gchar * @@ -117,7 +115,6 @@ ges_formatter_class_init (GESFormatterClass * klass) object_class->dispose = ges_formatter_dispose; klass->can_load_uri = default_can_load_uri; - klass->can_save_uri = default_can_save_uri; klass->load_from_uri = NULL; klass->save_to_uri = NULL; @@ -155,15 +152,6 @@ default_can_load_uri (GESFormatter * dummy_instance, const gchar * uri, return FALSE; } -static gboolean -default_can_save_uri (GESFormatter * dummy_instance, - const gchar * uri, GError ** error) -{ - GST_DEBUG ("%s: no 'can_save_uri' vmethod implementation", - G_OBJECT_TYPE_NAME (dummy_instance)); - return FALSE; -} - static gchar * _get_extension (const gchar * uri) { diff --git a/ges/ges-formatter.h b/ges/ges-formatter.h index d6eabf10ea..dc9b6c51e3 100644 --- a/ges/ges-formatter.h +++ b/ges/ges-formatter.h @@ -64,7 +64,6 @@ struct _GESFormatter { }; typedef gboolean (*GESFormatterCanLoadURIMethod) (GESFormatter *dummy_instance, const gchar * uri, GError **error); -typedef gboolean (*GESFormatterCanSaveURIMethod) (GESFormatter *dummy_instance, const gchar * uri, GError **error); /** * GESFormatterLoadFromURIMethod: @@ -108,7 +107,6 @@ typedef gboolean (*GESFormatterSaveToURIMethod) (GESFormatter *formatter, * GESFormatterClass: * @parent_class: the parent class structure * @can_load_uri: Whether the URI can be loaded - * @can_save_uri: Whether the URI can be saved * @load_from_uri: class method to deserialize data from a URI * @save_to_uri: class method to serialize data to a URI * @@ -119,7 +117,6 @@ struct _GESFormatterClass { GInitiallyUnownedClass parent_class; GESFormatterCanLoadURIMethod can_load_uri; - GESFormatterCanSaveURIMethod can_save_uri; GESFormatterLoadFromURIMethod load_from_uri; GESFormatterSaveToURIMethod save_to_uri;