From d88ad14b2f6a43f2821299c32f4710d33386a73c Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 12 Apr 2020 01:54:10 +0200 Subject: ev-window/epub-document: remove unused functions Fixes the build warnings: ev-window.c:6379:1: warning: function 'menubar_deactivate_cb' is not needed and will not be emitted [-Wunneeded-internal-declaration] menubar_deactivate_cb (GtkWidget *menubar, ^ epub-document.c:946:1: warning: function 'check_add_page_numbers' is not needed and will not be emitted [-Wunneeded-internal-declaration] check_add_page_numbers(linknode *listdata, contentListNode *comparenode) ^ --- shell/ev-window.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'shell') diff --git a/shell/ev-window.c b/shell/ev-window.c index 70dce57f..25e12274 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -6375,20 +6375,6 @@ ev_window_dispose (GObject *object) G_OBJECT_CLASS (ev_window_parent_class)->dispose (object); } -static void -menubar_deactivate_cb (GtkWidget *menubar, - EvWindow *window) -{ - g_signal_handlers_disconnect_by_func (menubar, - G_CALLBACK (menubar_deactivate_cb), - window); - - gtk_menu_shell_deselect (GTK_MENU_SHELL (menubar)); - - update_chrome_visibility (window); -} - - /* * GtkWindow catches keybindings for the menu items _before_ passing them to * the focused widget. This is unfortunate and means that pressing Ctrl+a, -- cgit v1.2.1