[gnome-builder] Workspace: remove unused vfuncs
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] Workspace: remove unused vfuncs
- Date: Sun, 14 Dec 2014 12:31:08 +0000 (UTC)
commit a44c2f896ae880a00cc7fc6f10e3fb2829bf6c7b
Author: Christian Hergert <christian hergert me>
Date: Sun Dec 14 04:31:03 2014 -0800
Workspace: remove unused vfuncs
We handle these with actions now, no need to add vfuncs for it.
src/editor/gb-editor-workspace.c | 15 ---------------
src/workbench/gb-workspace.c | 18 ------------------
src/workbench/gb-workspace.h | 5 -----
3 files changed, 0 insertions(+), 38 deletions(-)
---
diff --git a/src/editor/gb-editor-workspace.c b/src/editor/gb-editor-workspace.c
index d0efe79..320d710 100644
--- a/src/editor/gb-editor-workspace.c
+++ b/src/editor/gb-editor-workspace.c
@@ -199,12 +199,6 @@ open_tab (GSimpleAction *action,
}
static void
-gb_editor_workspace_new_document (GbWorkspace *workspace)
-{
- new_document (NULL, NULL, workspace);
-}
-
-static void
gb_editor_workspace_grab_focus (GtkWidget *widget)
{
GbEditorWorkspace *workspace = GB_EDITOR_WORKSPACE (widget);
@@ -215,12 +209,6 @@ gb_editor_workspace_grab_focus (GtkWidget *widget)
}
static void
-gb_editor_workspace_activate_open (GbWorkspace *workspace)
-{
- open_tab (NULL, NULL, workspace);
-}
-
-static void
gb_editor_workspace_map (GtkWidget *widget)
{
GbEditorWorkspace *workspace = (GbEditorWorkspace *)widget;
@@ -257,9 +245,6 @@ gb_editor_workspace_class_init (GbEditorWorkspaceClass *klass)
widget_class->grab_focus = gb_editor_workspace_grab_focus;
widget_class->map = gb_editor_workspace_map;
- workspace_class->new_document = gb_editor_workspace_new_document;
- workspace_class->open = gb_editor_workspace_activate_open;
-
gtk_widget_class_set_template_from_resource (widget_class,
"/org/gnome/builder/ui/gb-editor-workspace.ui");
gtk_widget_class_bind_template_child_private (widget_class, GbEditorWorkspace, paned);
diff --git a/src/workbench/gb-workspace.c b/src/workbench/gb-workspace.c
index 01a01ac..aa4c70b 100644
--- a/src/workbench/gb-workspace.c
+++ b/src/workbench/gb-workspace.c
@@ -77,24 +77,6 @@ gb_workspace_set_title (GbWorkspace *workspace,
gParamSpecs[PROP_TITLE]);
}
-void
-gb_workspace_new_document (GbWorkspace *workspace)
-{
- g_return_if_fail (GB_IS_WORKSPACE (workspace));
-
- if (GB_WORKSPACE_GET_CLASS (workspace)->new_document)
- GB_WORKSPACE_GET_CLASS (workspace)->new_document (workspace);
-}
-
-void
-gb_workspace_open (GbWorkspace *workspace)
-{
- g_return_if_fail (GB_IS_WORKSPACE (workspace));
-
- if (GB_WORKSPACE_GET_CLASS (workspace)->open)
- GB_WORKSPACE_GET_CLASS (workspace)->open (workspace);
-}
-
static void
gb_workspace_finalize (GObject *object)
{
diff --git a/src/workbench/gb-workspace.h b/src/workbench/gb-workspace.h
index a747fe8..411d57d 100644
--- a/src/workbench/gb-workspace.h
+++ b/src/workbench/gb-workspace.h
@@ -44,9 +44,6 @@ struct _GbWorkspace
struct _GbWorkspaceClass
{
GtkBinClass parent_class;
-
- void (*new_document) (GbWorkspace *workspace);
- void (*open) (GbWorkspace *workspace);
};
GType gb_workspace_get_type (void) G_GNUC_CONST;
@@ -56,8 +53,6 @@ void gb_workspace_set_icon_name (GbWorkspace *workspace,
const gchar *gb_workspace_get_title (GbWorkspace *workspace);
void gb_workspace_set_title (GbWorkspace *workspace,
const gchar *title);
-void gb_workspace_new_document (GbWorkspace *workspace);
-void gb_workspace_open (GbWorkspace *workspace);
G_END_DECLS
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]