[gnome-games/wip/exalm/metadata: 2/21] grilo-developer: Inline load_media_developer()



commit b65018437b7f42bad0f076e5f30c5cd0297c8070
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Oct 9 02:13:26 2018 +0500

    grilo-developer: Inline load_media_developer()
    
    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-developer.vala | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
---
diff --git a/src/grilo/grilo-developer.vala b/src/grilo/grilo-developer.vala
index 8a5d8eb4..a679b99a 100644
--- a/src/grilo/grilo-developer.vala
+++ b/src/grilo/grilo-developer.vala
@@ -34,12 +34,8 @@ public class Games.GriloDeveloper : Object, Developer {
                if (grl_media.length (metadata_key) == 0)
                        return;
 
-               var developer_string = grl_media.get_string (metadata_key);
-               load_media_developer (developer_string);
-       }
+               developer = grl_media.get_string (metadata_key);
 
-       private void load_media_developer (string developer_string) {
-               developer = developer_string;
                resolved = true;
 
                changed ();


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