From 35b2a8970c28e322bad1ee2c67ee1ba7a4824e95 Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Sat, 23 Mar 2013 20:48:25 +0100 Subject: Remove dummy work offline code We are doing nothing with this these days. --- src/ephy-window.c | 5 ----- src/window-commands.c | 15 --------------- src/window-commands.h | 2 -- 3 files changed, 22 deletions(-) diff --git a/src/ephy-window.c b/src/ephy-window.c index a2d073133..5b2b664fc 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -201,11 +201,6 @@ static const GtkActionEntry ephy_menu_entries [] = { static const GtkToggleActionEntry ephy_menu_toggle_entries [] = { - /* File actions. */ - - { "FileWorkOffline", NULL, N_("_Work Offline"), NULL, NULL, - G_CALLBACK (window_cmd_file_work_offline), FALSE }, - /* View actions. */ { "ViewDownloadsBar", NULL, N_("_Downloads Bar"), NULL, NULL, diff --git a/src/window-commands.c b/src/window-commands.c index 323453fc2..265582f92 100644 --- a/src/window-commands.c +++ b/src/window-commands.c @@ -1057,21 +1057,6 @@ window_cmd_file_save_as_application (GtkAction *action, gtk_widget_show_all (dialog); } -void -window_cmd_file_work_offline (GtkAction *action, - EphyWindow *window) -{ - /* TODO: WebKitGTK+ does not currently support offline status. */ -#if 0 - EphyEmbedSingle *single; - gboolean offline; - - single = EPHY_EMBED_SINGLE (ephy_embed_shell_get_embed_single (ephy_embed_shell_get_default ())); - offline = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)); - ephy_embed_single_set_network_status (single, !offline); -#endif -} - void window_cmd_file_close_window (GtkAction *action, EphyWindow *window) diff --git a/src/window-commands.h b/src/window-commands.h index 8000c70dc..abf5865d6 100644 --- a/src/window-commands.h +++ b/src/window-commands.h @@ -54,8 +54,6 @@ void window_cmd_undo_close_tab (GtkAction *action, EphyWindow *window); void window_cmd_file_send_to (GtkAction *action, EphyWindow *window); -void window_cmd_file_work_offline (GtkAction *action, - EphyWindow *window); void window_cmd_file_close_window (GtkAction *action, EphyWindow *window); void window_cmd_edit_undo (GtkAction *action, -- cgit v1.2.3