From 32a399be40bb62174bf52209825e1ab65483b160 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 14 Aug 2009 13:58:38 +0200 Subject: Remove function set_string_and_highlight() The function did the same thing as ephy_find_toolbar_set_properties(), so use that function always. --- src/ephy-find-toolbar.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/ephy-find-toolbar.c b/src/ephy-find-toolbar.c index 6a2eac05e..1bd2e3d25 100644 --- a/src/ephy-find-toolbar.c +++ b/src/ephy-find-toolbar.c @@ -227,8 +227,10 @@ find_prev_cb (EphyFindToolbar *toolbar) } static void -set_string_and_highlight (EphyFindToolbarPrivate *priv, const char *find_string) +ephy_find_toolbar_set_properties (EphyFindToolbar *toolbar, + const char *find_string) { + EphyFindToolbarPrivate *priv = toolbar->priv; WebKitWebView *web_view = priv->web_view; gboolean case_sensitive; @@ -247,15 +249,6 @@ set_string_and_highlight (EphyFindToolbarPrivate *priv, const char *find_string) webkit_web_view_set_highlight_text_matches (web_view, TRUE); } -static void -ephy_find_toolbar_set_properties (EphyFindToolbar *toolbar, - const char *find_string) -{ - EphyFindToolbarPrivate *priv = toolbar->priv; - - set_string_and_highlight (priv, find_string); -} - static EphyEmbedFindResult real_find (EphyFindToolbarPrivate *priv, gboolean forward) @@ -289,7 +282,7 @@ ephy_find_toolbar_find (EphyFindToolbar *toolbar, { EphyFindToolbarPrivate *priv = toolbar->priv; - set_string_and_highlight (priv, find_string); + ephy_find_toolbar_set_properties (toolbar, find_string); return real_find (priv, TRUE); } -- cgit v1.2.3