From 3bd1f491d17fed4bbfa91c0cfe2a89deaf8072b3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 22 Jan 2024 23:31:31 -0500 Subject: [PATCH] node-editor: Remove some dead code We ended up not needing a map implementation after all. Remove the vestiges. --- demos/node-editor/node-editor-window.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/demos/node-editor/node-editor-window.c b/demos/node-editor/node-editor-window.c index 8de5252bb5..5ecb3b7183 100644 --- a/demos/node-editor/node-editor-window.c +++ b/demos/node-editor/node-editor-window.c @@ -1567,23 +1567,6 @@ edit_action_cb (GtkWidget *widget, node_editor_window_edit (self, &start); } -static void -node_editor_window_map (GtkWidget *widget) -{ - char *path; - - GTK_WIDGET_CLASS (node_editor_window_parent_class)->map (widget); - - path = get_autosave_path (NULL); - if (g_file_test (path, G_FILE_TEST_EXISTS)) - { - g_free (path); - return; - } - - g_free (path); -} - static void node_editor_window_set_property (GObject *object, guint prop_id, @@ -1660,8 +1643,6 @@ node_editor_window_class_init (NodeEditorWindowClass *class) widget_class->realize = node_editor_window_realize; widget_class->unrealize = node_editor_window_unrealize; - widget_class->map = node_editor_window_map; - properties[PROP_AUTO_RELOAD] = g_param_spec_boolean ("auto-reload", NULL, NULL, TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE | G_PARAM_STATIC_NAME);