[gnome-games/wip/exalm/metadata: 9/21] grilo-genre: Inline load_media_genre()



commit 31fed8bf6e5902493cb5f443d5862ac01f1cf8a5
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Oct 9 02:33:45 2018 +0500

    grilo-genre: Inline load_media_genre()
    
    This function is completely unnecessary, since it's only called once and
    it doesn't increase readability in any way, so inline it.

 src/grilo/grilo-genre.vala | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/src/grilo/grilo-genre.vala b/src/grilo/grilo-genre.vala
index 274583dd..b221dcb1 100644
--- a/src/grilo/grilo-genre.vala
+++ b/src/grilo/grilo-genre.vala
@@ -33,16 +33,8 @@ public class Games.GriloGenre : Object, Genre {
                if (genre_count == 0)
                        return;
 
-               string[] genres = {};
-
                for (uint index = 0; index < genre_count; index++)
-                       genres += grl_media.get_genre_nth (index);
-
-               load_media_genre (genres);
-       }
-
-       private void load_media_genre (string[] genres) {
-               genre = genres.copy ();
+                       genre += grl_media.get_genre_nth (index);
 
                resolved = true;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]