[nautilus/wip/corey/query-editor: 1/3] query-editor: Drop unused code




commit eb2ed8b173e1b78f42c6fc93cf941556e7ff8d33
Author: Corey Berla <corey berla me>
Date:   Fri Sep 30 09:03:11 2022 -0700

    query-editor: Drop unused code

 src/nautilus-query-editor.c | 15 ---------------
 src/nautilus-query-editor.h |  8 --------
 2 files changed, 23 deletions(-)
---
diff --git a/src/nautilus-query-editor.c b/src/nautilus-query-editor.c
index b671d818f..7ea3919a1 100644
--- a/src/nautilus-query-editor.c
+++ b/src/nautilus-query-editor.c
@@ -76,10 +76,6 @@ enum
 
 static guint signals[LAST_SIGNAL];
 
-static void entry_activate_cb (GtkWidget           *entry,
-                               NautilusQueryEditor *editor);
-static void entry_changed_cb (GtkWidget           *entry,
-                              NautilusQueryEditor *editor);
 static void nautilus_query_editor_changed (NautilusQueryEditor *editor);
 
 G_DEFINE_TYPE (NautilusQueryEditor, nautilus_query_editor, GTK_TYPE_WIDGET);
@@ -783,17 +779,6 @@ nautilus_query_editor_set_query (NautilusQueryEditor *self,
     self->change_frozen = FALSE;
 }
 
-void
-nautilus_query_editor_set_text (NautilusQueryEditor *self,
-                                const gchar         *text)
-{
-    g_return_if_fail (NAUTILUS_IS_QUERY_EDITOR (self));
-    g_return_if_fail (text != NULL);
-
-    /* The handler of the entry will take care of everything */
-    gtk_editable_set_text (GTK_EDITABLE (self->text), text);
-}
-
 static gboolean
 nautilus_gtk_search_entry_is_keynav_event (guint           keyval,
                                            GdkModifierType state)
diff --git a/src/nautilus-query-editor.h b/src/nautilus-query-editor.h
index e071f94f1..39b1f5e62 100644
--- a/src/nautilus-query-editor.h
+++ b/src/nautilus-query-editor.h
@@ -63,14 +63,6 @@ GFile         *nautilus_query_editor_get_location (NautilusQueryEditor *editor);
  */
 void           nautilus_query_editor_set_location (NautilusQueryEditor *editor,
                                                    GFile               *location);
-/**
- * nautilus_query_editor_set_text:
- *
- * @editor: A #NautilusQueryEditor instance.
- * @text: (not nullable) (transfer none): The search text.
- */
-void           nautilus_query_editor_set_text     (NautilusQueryEditor *editor,
-                                                   const gchar         *text);
 
 gboolean
 nautilus_query_editor_handle_event (NautilusQueryEditor   *self,


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