[gnome-builder/document-manager] editor: remove more legacy code



commit 9a0263c851868afa0900d856244a35047ddf1bc9
Author: Christian Hergert <christian hergert me>
Date:   Mon Dec 8 21:56:58 2014 -0800

    editor: remove more legacy code

 src/editor/gb-editor-workspace.c     |   19 -------------------
 src/workbench/gb-workbench-actions.c |    1 -
 2 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/editor/gb-editor-workspace.c b/src/editor/gb-editor-workspace.c
index d2fa668..c3a62ad 100644
--- a/src/editor/gb-editor-workspace.c
+++ b/src/editor/gb-editor-workspace.c
@@ -88,23 +88,6 @@ save_as_tab (GSimpleAction *action,
 }
 
 static void
-new_tab (GSimpleAction *action,
-         GVariant      *parameter,
-         gpointer       user_data)
-{
-#if 0
-  GbEditorWorkspace *workspace = user_data;
-  GbEditorTab *tab;
-
-  tab = gb_editor_tab_new ();
-  gtk_container_add (GTK_CONTAINER (workspace->priv->tab_grid),
-                     GTK_WIDGET (tab));
-  gtk_widget_show (GTK_WIDGET (tab));
-  gtk_widget_grab_focus (GTK_WIDGET (tab));
-#endif
-}
-
-static void
 jump_to_doc_tab (GSimpleAction *action,
                  GVariant      *parameter,
                  gpointer       user_data)
@@ -309,11 +292,9 @@ static void
 gb_editor_workspace_init (GbEditorWorkspace *workspace)
 {
     const GActionEntry entries[] = {
-      { "new-tab", new_tab },
       { "open", open_tab },
       { "save", save_tab },
       { "save-as", save_as_tab },
-      { "preview", preview_tab },
       { "jump-to-doc", jump_to_doc_tab, "s" },
     };
 
diff --git a/src/workbench/gb-workbench-actions.c b/src/workbench/gb-workbench-actions.c
index fc49842..4b35b70 100644
--- a/src/workbench/gb-workbench-actions.c
+++ b/src/workbench/gb-workbench-actions.c
@@ -177,7 +177,6 @@ gb_workbench_actions_constructed (GObject *object)
 {
    GbWorkbenchActions *actions = (GbWorkbenchActions *)object;
    static const GActionEntry action_entries[] = {
-      { "new-tab", proxy_action },
       { "open", proxy_action },
       { "save", proxy_action },
       { "save-as", proxy_action },


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