summaryrefslogtreecommitdiff
path: root/gtk/gtkcssimageicontheme.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2020-02-06 09:50:04 +0100
committerAlexander Larsson <alexl@redhat.com>2020-02-06 09:50:04 +0100
commit68657440340784dbd97e9064127474e0c9f2c3a6 (patch)
tree83b8356c14ede05069c6cfd148da6455646dc91c /gtk/gtkcssimageicontheme.c
parentde02769a2f6ca86b39e23b6a75b2acc731846c04 (diff)
downloadgtk+-68657440340784dbd97e9064127474e0c9f2c3a6.tar.gz
Remove unnecessary image-missing fallbacks
We now always return something from icon theme lookups, so no need to do custom fallbacks.
Diffstat (limited to 'gtk/gtkcssimageicontheme.c')
-rw-r--r--gtk/gtkcssimageicontheme.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/gtk/gtkcssimageicontheme.c b/gtk/gtkcssimageicontheme.c
index 4a3ea9ce1b..c886e2447c 100644
--- a/gtk/gtkcssimageicontheme.c
+++ b/gtk/gtkcssimageicontheme.c
@@ -68,13 +68,6 @@ gtk_css_image_icon_theme_snapshot (GtkCssImage *image,
icon_theme->scale,
GTK_TEXT_DIR_NONE,
0);
- if (icon == NULL)
- icon = gtk_icon_theme_lookup_icon (icon_theme->icon_theme,
- "image-missing",
- NULL,
- size, icon_theme->scale,
- GTK_TEXT_DIR_NONE,
- 0);
g_assert (icon != NULL);