icontheme: Remove use_builtin parameter from theme_lookup_icon
authorTimm Bäder <mail@baedert.org>
Tue, 21 May 2019 12:53:03 +0000 (14:53 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 9 Sep 2019 15:36:26 +0000 (17:36 +0200)
Unused.

gtk/gtkicontheme.c

index fb983c043da262a31e97e8f582e5c7b00e83ccab..78714d7c0172df4751d2d4d85ae636ac0cf1e88f 100644 (file)
@@ -325,8 +325,7 @@ static GtkIconInfo *theme_lookup_icon         (IconTheme        *theme,
                                                const gchar      *icon_name,
                                                gint              size,
                                                gint              scale,
-                                               gboolean          allow_svg,
-                                               gboolean          use_default_icons);
+                                               gboolean          allow_svg);
 static void         theme_list_icons          (IconTheme        *theme,
                                                GHashTable       *icons,
                                                GQuark            context);
@@ -1662,7 +1661,6 @@ real_choose_icon (GtkIconTheme       *icon_theme,
   UnthemedIcon *unthemed_icon = NULL;
   const gchar *icon_name = NULL;
   gboolean allow_svg;
-  gboolean use_builtin;
   IconTheme *theme = NULL;
   gint i;
   IconInfoKey key;
@@ -1698,8 +1696,6 @@ real_choose_icon (GtkIconTheme       *icon_theme,
   else
     allow_svg = priv->pixbuf_supports_svg;
 
-  use_builtin = flags & GTK_ICON_LOOKUP_USE_BUILTIN;
-
   /* This is used in the icontheme unit test */
   GTK_DISPLAY_NOTE (priv->display, ICONTHEME,
             for (i = 0; icon_names[i]; i++)
@@ -1719,7 +1715,7 @@ real_choose_icon (GtkIconTheme       *icon_theme,
       for (i = 0; icon_names[i] && icon_name_is_symbolic (icon_names[i], -1); i++)
         {
           icon_name = icon_names[i];
-          icon_info = theme_lookup_icon (theme, icon_name, size, scale, allow_svg, use_builtin);
+          icon_info = theme_lookup_icon (theme, icon_name, size, scale, allow_svg);
           if (icon_info)
             goto out;
         }
@@ -1732,7 +1728,7 @@ real_choose_icon (GtkIconTheme       *icon_theme,
       for (i = 0; icon_names[i]; i++)
         {
           icon_name = icon_names[i];
-          icon_info = theme_lookup_icon (theme, icon_name, size, scale, allow_svg, use_builtin);
+          icon_info = theme_lookup_icon (theme, icon_name, size, scale, allow_svg);
           if (icon_info)
             goto out;
         }
@@ -1826,7 +1822,7 @@ real_choose_icon (GtkIconTheme       *icon_theme,
       icon_info->unscaled_scale = 1.0;
       if (scale != 1 && !icon_info->forced_size && theme != NULL)
         {
-          unscaled_icon_info = theme_lookup_icon (theme, icon_name, size, 1, allow_svg, use_builtin);
+          unscaled_icon_info = theme_lookup_icon (theme, icon_name, size, 1, allow_svg);
           if (unscaled_icon_info)
             {
               icon_info->unscaled_scale =
@@ -2916,8 +2912,7 @@ theme_lookup_icon (IconTheme   *theme,
                    const gchar *icon_name,
                    gint         size,
                    gint         scale,
-                   gboolean     allow_svg,
-                   gboolean     use_builtin)
+                   gboolean     allow_svg)
 {
   GList *dirs, *l;
   IconThemeDir *dir, *min_dir;