[grilo-plugins] tracker: Get rid of supported_operations()



commit 75a381830bee53ccf038343cf24ab48ec888f01d
Author: Juan A. Suarez Romero <jasuarez igalia com>
Date:   Thu Jan 20 09:40:30 2011 +0100

    tracker: Get rid of supported_operations()
    
    It is not needed to redefine this function. When providing a
    implementation for an operation, core automatically detects this and
    assume source is able to do that operation.
    
    Only in the case where though providing an implementation, source can
    still not be able to do it, we need to provide our custom
    supported_operations().
    
    Signed-off-by: Juan A. Suarez Romero <jasuarez igalia com>

 src/tracker/grl-tracker.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/src/tracker/grl-tracker.c b/src/tracker/grl-tracker.c
index 5d81bef..01402d3 100644
--- a/src/tracker/grl-tracker.c
+++ b/src/tracker/grl-tracker.c
@@ -141,8 +141,6 @@ gboolean grl_tracker_plugin_init (GrlPluginRegistry *registry,
                                   const GrlPluginInfo *plugin,
                                   GList *configs);
 
-static GrlSupportedOps grl_tracker_source_supported_operations (GrlMetadataSource *metadata_source);
-
 static const GList *grl_tracker_source_supported_keys (GrlMetadataSource *source);
 
 static void grl_tracker_source_query (GrlMediaSource *source,
@@ -235,7 +233,6 @@ grl_tracker_source_class_init (GrlTrackerSourceClass * klass)
   source_class->browse   = grl_tracker_source_browse;
 
   metadata_class->supported_keys = grl_tracker_source_supported_keys;
-  metadata_class->supported_operations = grl_tracker_source_supported_operations;
 
   g_class->finalize = grl_tracker_source_finalize;
   g_class->set_property = grl_tracker_source_set_property;
@@ -719,18 +716,6 @@ tracker_metadata_cb (GObject                    *source_object,
 
 /* ================== API Implementation ================ */
 
-static GrlSupportedOps
-grl_tracker_source_supported_operations (GrlMetadataSource *metadata_source)
-{
-  GrlSupportedOps   caps;
-  GrlTrackerSource *source;
-
-  source = GRL_TRACKER_SOURCE (metadata_source);
-  caps = GRL_OP_BROWSE | GRL_OP_METADATA | GRL_OP_QUERY | GRL_OP_SEARCH;
-
-  return caps;
-}
-
 static const GList *
 grl_tracker_source_supported_keys (GrlMetadataSource *source)
 {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]