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.
This commit is contained in:
Thibault Saunier 2013-08-19 15:12:48 -04:00
parent 9d30f05798
commit 41d86292c9
2 changed files with 0 additions and 15 deletions

View file

@ -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)
{

View file

@ -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;