[easytag/wip/musicbrainz-support-merge: 46/48] Fixed Warning Messages



commit 243c2ca71b4f5c72bf6fe5244c6320475b6d18cd
Author: Abhinav <abhijangda hotmail com>
Date:   Mon Aug 4 21:30:46 2014 +0530

    Fixed Warning Messages

 src/mb_search.c          |    4 ++++
 src/mb_search.h          |    3 ---
 src/musicbrainz_dialog.c |   19 +------------------
 3 files changed, 5 insertions(+), 21 deletions(-)
---
diff --git a/src/mb_search.c b/src/mb_search.c
index 4e1cdae..27f6ddb 100755
--- a/src/mb_search.c
+++ b/src/mb_search.c
@@ -30,6 +30,10 @@
 /****************
  * Declarations *
  ****************/
+
+#define SEARCH_LIMIT_STR "5"
+#define SEARCH_LIMIT_INT 5
+
 static gchar *server = NULL;
 static int port = 0;
 
diff --git a/src/mb_search.h b/src/mb_search.h
index 190ea57..6362520 100755
--- a/src/mb_search.h
+++ b/src/mb_search.h
@@ -28,9 +28,6 @@
 #include <gtk/gtk.h>
 #include <musicbrainz5/mb5_c.h>
 
-#define SEARCH_LIMIT_STR "5"
-#define SEARCH_LIMIT_INT 5
-
 /****************
  * Declarations *
  ****************/
diff --git a/src/musicbrainz_dialog.c b/src/musicbrainz_dialog.c
index 39c0dab..28cffc9 100755
--- a/src/musicbrainz_dialog.c
+++ b/src/musicbrainz_dialog.c
@@ -482,11 +482,7 @@ manual_search_thread_func (GSimpleAsyncResult *res, GObject *obj,
     GError *error;
     ManualSearchThreadData *thread_data;
     gchar *status_msg;
-    EtMusicBrainzDialogPrivate *mb_dialog_priv;
-    EtMusicBrainzDialog *dlg;
-
-    dlg = ET_MUSICBRAINZ_DIALOG (mbDialog);
-    mb_dialog_priv = ET_MUSICBRAINZ_DIALOG_GET_PRIVATE (dlg);
+    
     error = NULL;
     g_simple_async_result_set_op_res_gboolean (res, FALSE);
 
@@ -851,11 +847,7 @@ selected_find_thread_func (GSimpleAsyncResult *res, GObject *obj,
     GList *iter;
     SelectedFindThreadData *thread_data;
     GError *error;
-    EtMusicBrainzDialog *dlg;
-    EtMusicBrainzDialogPrivate *mb_dialog_priv;
 
-    dlg = ET_MUSICBRAINZ_DIALOG (mbDialog);
-    mb_dialog_priv = ET_MUSICBRAINZ_DIALOG_GET_PRIVATE (dlg);
     g_simple_async_result_set_op_res_gboolean (res, FALSE);
     error = NULL;
     thread_data = g_async_result_get_user_data (G_ASYNC_RESULT (res));
@@ -1126,12 +1118,8 @@ discid_search_thread_func (GSimpleAsyncResult *res, GObject *obj,
     GError *error;
     DiscId *disc;
     gchar *discid;
-    EtMusicBrainzDialogPrivate *mb_dialog_priv;
-    EtMusicBrainzDialog *dlg;
     DiscIDSearchThreadData *thread_data;
 
-    dlg = ET_MUSICBRAINZ_DIALOG (mbDialog);
-    mb_dialog_priv = ET_MUSICBRAINZ_DIALOG_GET_PRIVATE (dlg);
     error = NULL;
     disc = discid_new ();
     g_simple_async_result_set_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (res),
@@ -1285,13 +1273,8 @@ freedbid_search_thread_func (GSimpleAsyncResult *res, GObject *obj,
                              GCancellable *cancellable)
 {
     GError *error;
-    gchar *freedbid;
-    EtMusicBrainzDialogPrivate *mb_dialog_priv;
-    EtMusicBrainzDialog *dlg;
     FreeDBIDSearchThreadData *thread_data;
 
-    dlg = ET_MUSICBRAINZ_DIALOG (mbDialog);
-    mb_dialog_priv = ET_MUSICBRAINZ_DIALOG_GET_PRIVATE (dlg);
     error = NULL;
     g_simple_async_result_set_op_res_gboolean (G_SIMPLE_ASYNC_RESULT (res),
                                                FALSE);


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