icontheme: Inline scan_resources into only caller
authorTimm Bäder <mail@baedert.org>
Sun, 1 Sep 2019 07:26:16 +0000 (09:26 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 9 Sep 2019 15:36:26 +0000 (17:36 +0200)
commit0b472c23d7002395dfbd99a0371c22bc9bdcf89c
tree36562f9e28844405c46c7f669798aa5db4cc88b0
parentbb89ee184fc2b678d17bde3bfe5ee16646b29f8d
icontheme: Inline scan_resources into only caller

The previous code was hiding the fact that the scan_resources function
almost always did nothing and just used g_resources_enumerate_children()
and then returned FALSE, leaving the caller with cleaning up the already
allocated IconThemeDir. By inlining this, we make sure that calling code
does not even need to allocate the IconThemeDir.
gtk/gtkicontheme.c