[mafw-lastfm-devel] [PATCH mafw-lastfm 10/12] main: remove unused code

Felipe Contreras felipe.contreras at gmail.com
Thu Jan 14 18:33:56 EET 2010


mafw_registry_get_renderers() never returns anything.

Signed-off-by: Felipe Contreras <felipe.contreras at gmail.com>
---
 mafw-lastfm/mafw-lastfm.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/mafw-lastfm/mafw-lastfm.c b/mafw-lastfm/mafw-lastfm.c
index 90cfe9c..820c499 100644
--- a/mafw-lastfm/mafw-lastfm.c
+++ b/mafw-lastfm/mafw-lastfm.c
@@ -230,7 +230,6 @@ int main (void)
   GError *error = NULL;
   MafwRegistry *registry;
   GMainLoop *main_loop;
-  GList *renderers;
   MafwLastfmScrobbler *scrobbler;
   gchar *file;
 
@@ -255,13 +254,6 @@ int main (void)
   g_signal_connect (registry,
                     "renderer-added",
                     G_CALLBACK (renderer_added_cb), scrobbler);
-  /* Also, check for already started extensions */
-  renderers = mafw_registry_get_renderers (registry);
-  while (renderers) {
-    renderer_added_cb (registry,
-                       G_OBJECT (renderers->data), scrobbler);
-    renderers = g_list_next (renderers);
-  }
 
   file = g_build_filename (g_get_home_dir (),
                            MAFW_LASTFM_CREDENTIALS_FILE, NULL);
-- 
1.6.6


More information about the mafw-lastfm-devel mailing list