[recipes] Remove an unused function
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Remove an unused function
- Date: Sun, 12 Mar 2017 02:37:59 +0000 (UTC)
commit 199ccc776844d504b54d2e588545b25ef8fd427f
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Mar 11 21:23:25 2017 -0500
Remove an unused function
Nobody is calling gr_window_show_search_by_ingredients,
so drop this function.
src/gr-window.c | 16 ----------------
src/gr-window.h | 2 --
2 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/gr-window.c b/src/gr-window.c
index 95c030f..027f68d 100644
--- a/src/gr-window.c
+++ b/src/gr-window.c
@@ -1334,22 +1334,6 @@ gr_window_show_season (GrWindow *window,
}
void
-gr_window_show_search_by_ingredients (GrWindow *window,
- const char *ingredient)
-{
- g_auto(GStrv) terms = NULL;
-
- switch_to_search (window);
- gtk_search_bar_set_search_mode (GTK_SEARCH_BAR (window->search_bar), TRUE);
-
- terms = g_new (char *, 2);
- terms[0] = g_strconcat ("i+:", ingredient, NULL);
- terms[1] = NULL;
-
- gr_query_editor_set_terms (GR_QUERY_EDITOR (window->search_bar), (const char **)terms);
-}
-
-void
gr_window_show_image (GrWindow *window,
GArray *images,
int index)
diff --git a/src/gr-window.h b/src/gr-window.h
index 0af7193..4431dcc 100644
--- a/src/gr-window.h
+++ b/src/gr-window.h
@@ -67,8 +67,6 @@ void gr_window_show_cuisine (GrWindow *window,
void gr_window_show_season (GrWindow *window,
const char *season,
const char *title);
-void gr_window_show_search_by_ingredients (GrWindow *window,
- const char *ingredient);
void gr_window_offer_undelete (GrWindow *window,
GrRecipe *recipe);
void gr_window_offer_contribute (GrWindow *window,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]