[gnome-games/wip/exalm/metadata: 11/21] grilo-players: Inline load_media_players()



commit 1e38233673fa629c84dddf578638dec2363968ee
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Tue Oct 9 02:26:14 2018 +0500

    grilo-players: Inline load_media_players()
    
    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-players.vala | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/grilo/grilo-players.vala b/src/grilo/grilo-players.vala
index 445a2a24..7ab4fddc 100644
--- a/src/grilo/grilo-players.vala
+++ b/src/grilo/grilo-players.vala
@@ -37,15 +37,9 @@ public class Games.GriloPlayers : Object, Players {
                var player = grl_media.get_string (metadata_key);
 
                if (int.parse (player) == 1)
-                       player = _("Single-player");
+                       players = _("Single-player");
                else
-                       player = _("Multi-player");
-
-               load_media_players (player);
-       }
-
-       private void load_media_players (string player) {
-               players = player;
+                       players = _("Multi-player");
 
                resolved = true;
 


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