[gnome-games/wip/exalm/metadata: 14/21] grilo-publisher: Inline load_media_publisher()



commit f9dddf9ca987b3576b5addb27e9f1ec1e76a80ca
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Oct 9 02:25:41 2018 +0500

    grilo-publisher: Inline load_media_publisher()
    
    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-publisher.vala | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/grilo/grilo-publisher.vala b/src/grilo/grilo-publisher.vala
index 377c039b..ee5c7efe 100644
--- a/src/grilo/grilo-publisher.vala
+++ b/src/grilo/grilo-publisher.vala
@@ -34,12 +34,7 @@ public class Games.GriloPublisher : Object, Publisher {
                if (grl_media.length (metadata_key) == 0)
                        return;
 
-               var publisher_string = grl_media.get_string (metadata_key);
-               load_media_publisher (publisher_string);
-       }
-
-       private void load_media_publisher (string publisher_string) {
-               publisher = publisher_string;
+               publisher = grl_media.get_string (metadata_key);
 
                resolved = true;
 


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