[gnome-builder] editor: remove dead code
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] editor: remove dead code
- Date: Thu, 11 Dec 2014 00:11:25 +0000 (UTC)
commit b23c26b50a87a9acf1b5f21cb4ce4b111839c305
Author: Christian Hergert <christian hergert me>
Date: Mon Dec 8 15:19:14 2014 -0800
editor: remove dead code
src/editor/gb-editor-workspace.c | 48 --------------------------------------
1 files changed, 0 insertions(+), 48 deletions(-)
---
diff --git a/src/editor/gb-editor-workspace.c b/src/editor/gb-editor-workspace.c
index e95a542..939da10 100644
--- a/src/editor/gb-editor-workspace.c
+++ b/src/editor/gb-editor-workspace.c
@@ -88,36 +88,6 @@ save_as_tab (GSimpleAction *action,
}
static void
-scroll_up_tab (GSimpleAction *action,
- GVariant *parameter,
- gpointer user_data)
-{
-#if 0
- GbEditorWorkspace *workspace = user_data;
- GbTab *tab;
-
- tab = gb_tab_grid_get_active (workspace->priv->tab_grid);
- if (GB_IS_EDITOR_TAB (tab))
- gb_editor_tab_scroll_up (GB_EDITOR_TAB (tab));
-#endif
-}
-
-static void
-scroll_down_tab (GSimpleAction *action,
- GVariant *parameter,
- gpointer user_data)
-{
-#if 0
- GbEditorWorkspace *workspace = user_data;
- GbTab *tab;
-
- tab = gb_tab_grid_get_active (workspace->priv->tab_grid);
- if (GB_IS_EDITOR_TAB (tab))
- gb_editor_tab_scroll_down (GB_EDITOR_TAB (tab));
-#endif
-}
-
-static void
toggle_split_tab (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
@@ -207,21 +177,6 @@ preview_tab (GSimpleAction *action,
}
static void
-close_tab (GSimpleAction *action,
- GVariant *parameter,
- gpointer user_data)
-{
-#if 0
- GbEditorWorkspace *workspace = user_data;
- GbTab *tab;
-
- tab = gb_tab_grid_get_active (workspace->priv->tab_grid);
- if (GB_IS_TAB (tab))
- gb_tab_close (GB_TAB (tab));
-#endif
-}
-
-static void
new_tab (GSimpleAction *action,
GVariant *parameter,
gpointer user_data)
@@ -458,13 +413,10 @@ static void
gb_editor_workspace_init (GbEditorWorkspace *workspace)
{
const GActionEntry entries[] = {
- { "close-tab", close_tab },
{ "new-tab", new_tab },
{ "open", open_tab },
{ "save", save_tab },
{ "save-as", save_as_tab },
- { "scroll-up", scroll_up_tab },
- { "scroll-down", scroll_down_tab },
{ "toggle-split", toggle_split_tab },
{ "find", find_tab },
{ "reformat", reformat_tab },
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]