From 12846c099810650d57553b06721574d17bb41272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrico=20Tr=C3=B6ger?= Date: Thu, 18 Dec 2008 19:22:36 +0000 Subject: [PATCH] Remove dead code. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@3400 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 2 ++ src/callbacks.c | 21 --------------------- src/callbacks.h | 5 ----- 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/ChangeLog b/ChangeLog index cc4b12f2..93afde6a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ Fix too ambitious auto tag closing in HTML files inside embedded scripting languages. Complete HTML styles in is_comment_style() and is_string_style(). + * src/callbacks.c, src/callbacks.h: + Remove dead code. 2008-12-18 Nick Treleaven diff --git a/src/callbacks.c b/src/callbacks.c index 2c88dc18..2ceecdbc 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -1236,27 +1236,6 @@ on_go_to_line_activate (GtkMenuItem *menuitem, } -void -on_goto_line_dialog_response (GtkDialog *dialog, - gint response, - gpointer user_data) -{ - if (response == GTK_RESPONSE_ACCEPT) - { - GeanyDocument *doc = document_get_current(); - - if (doc != NULL) - { - gint line = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(user_data)); - if (! editor_goto_line(doc->editor, line - 1)) - utils_beep(); - } - } - if (dialog != NULL) - gtk_widget_destroy(GTK_WIDGET(dialog)); -} - - void on_toolbutton_goto_entry_activate(GtkAction *action, const gchar *text, gpointer user_data) { diff --git a/src/callbacks.h b/src/callbacks.h index 32607b13..41044efc 100644 --- a/src/callbacks.h +++ b/src/callbacks.h @@ -282,11 +282,6 @@ void on_go_to_line_activate (GtkMenuItem *menuitem, gpointer user_data); -void -on_goto_line_dialog_response (GtkDialog *dialog, - gint response, - gpointer user_data); - void on_help1_activate (GtkMenuItem *menuitem, gpointer user_data);