[gyrus] remove unused variables all over the place



commit 15c419afabbd7ba4654ca16b2b0cd00169880167
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Mon Mar 4 10:01:54 2013 +0200

    remove unused variables all over the place

 src/gyrus-admin.c    |    5 +----
 src/gyrus-main-app.c |   29 -----------------------------
 src/gyrus-report.c   |    2 --
 3 files changed, 1 insertions(+), 35 deletions(-)
---
diff --git a/src/gyrus-admin.c b/src/gyrus-admin.c
index 2c632b9..9230366 100644
--- a/src/gyrus-admin.c
+++ b/src/gyrus-admin.c
@@ -731,7 +731,6 @@ gyrus_admin_listen_channel (GyrusAdmin *admin, gchar **message, gint *msg_len)
 {
        gsize bytes_read;
        gchar **tokens = NULL;
-       GError *error = NULL;
        GyrusImapStatus imap_status;
 
        *message = NULL;
@@ -742,7 +741,6 @@ gyrus_admin_listen_channel (GyrusAdmin *admin, gchar **message, gint *msg_len)
                g_free (*message);
                g_strfreev (tokens);
 
-               error = G_IO_ERROR_NONE;
                imap_status = GYRUS_IMAP_STATUS_OK;
                *message = socket_readline (admin, &bytes_read);
 
@@ -783,12 +781,11 @@ gyrus_admin_write_channel (GyrusAdmin *admin, gchar *message)
 {
        GOutputStream *stream;
        guint msg_len;
-       gsize bytes_written;
        GError *error = NULL;
 
        msg_len = g_utf8_strlen (message, -1);
        stream = g_io_stream_get_output_stream (G_IO_STREAM (admin->priv->connection));
-       bytes_written = g_output_stream_write (stream, message, msg_len, NULL, &error);
+       g_output_stream_write (stream, message, msg_len, NULL, &error);
 #ifdef DEBUG_PLAIN_CHANNEL
        g_print ("written: %s", message);
 #endif
diff --git a/src/gyrus-main-app.c b/src/gyrus-main-app.c
index 87a5992..7c9e18f 100644
--- a/src/gyrus-main-app.c
+++ b/src/gyrus-main-app.c
@@ -303,39 +303,10 @@ gyrus_main_app_on_switch_page (GtkNotebook *notebook,
 /*** Private Methods ***/
 
 static void
-gyrus_main_app_finalize (GObject *object)
-{
-       GyrusMainApp *app;
-
-       g_return_if_fail (GYRUS_IS_MAIN_APP(object));
-
-       app = GYRUS_MAIN_APP (object);
-
-       G_OBJECT_CLASS (gyrus_main_app_parent_class)->finalize (object);
-}
-
-static void
-gyrus_main_app_destroy (GtkObject *object)
-{
-       GyrusMainApp *app;
-       g_return_if_fail (GYRUS_IS_MAIN_APP (object));
-       app = GYRUS_MAIN_APP (object);
-
-       GTK_OBJECT_CLASS (gyrus_main_app_parent_class)->destroy (object);
-
-}
-
-static void
 gyrus_main_app_class_init (GyrusMainAppClass *class)
 {
-       GObjectClass *gobject_class = G_OBJECT_CLASS (class);
-       GtkObjectClass *object_class = GTK_OBJECT_CLASS (class);
-
        gyrus_main_app_parent_class = g_type_class_peek_parent (class);
 
-       gobject_class->finalize = gyrus_main_app_finalize;
-       object_class->destroy = gyrus_main_app_destroy;
-
        /* register private struct */
        g_type_class_add_private (class, sizeof(GyrusMainAppPrivate));
 }
diff --git a/src/gyrus-report.c b/src/gyrus-report.c
index 69c4f3c..195ced3 100644
--- a/src/gyrus-report.c
+++ b/src/gyrus-report.c
@@ -79,7 +79,6 @@ gyrus_report_show_report (GyrusAdmin *admin)
        GtkBuilder *builder;
 
        GtkWidget *button_cancel;
-       GtkWidget *button_preview;
        GtkWidget *button_update;
 
        GyrusReportData *report;
@@ -95,7 +94,6 @@ gyrus_report_show_report (GyrusAdmin *admin)
 
        report->window_report = GTK_WIDGET (gtk_builder_get_object (builder, "window-report"));
        button_cancel = GTK_WIDGET (gtk_builder_get_object (builder, "button-cancel"));
-       button_preview = GTK_WIDGET (gtk_builder_get_object (builder, "button-preview"));
        button_update = GTK_WIDGET (gtk_builder_get_object (builder, "button-update"));
        report->spin_report = GTK_WIDGET (gtk_builder_get_object (builder, "spinbutton-percentage"));
        report->treeview_report = GTK_TREE_VIEW (gtk_builder_get_object (builder,"treeview-report"));


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