[gnome-games/wip/exalm/metadata: 4/21] grilo-cooperative: Inline load_media_cooperative()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/metadata: 4/21] grilo-cooperative: Inline load_media_cooperative()
- Date: Mon, 8 Oct 2018 21:42:09 +0000 (UTC)
commit 25e60f7ff9fe3e2fcbeb408e235a23ccb67c7f7b
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Oct 9 02:33:30 2018 +0500
grilo-cooperative: Inline load_media_cooperative()
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-cooperative.vala | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/grilo/grilo-cooperative.vala b/src/grilo/grilo-cooperative.vala
index 9ab317af..3cafcef0 100644
--- a/src/grilo/grilo-cooperative.vala
+++ b/src/grilo/grilo-cooperative.vala
@@ -34,12 +34,7 @@ public class Games.GriloCooperative : Object, Cooperative {
if (grl_media.length (metadata_key) == 0)
return;
- var coop = grl_media.get_boolean (metadata_key);
- load_media_cooperative (coop);
- }
-
- private void load_media_cooperative (bool coop) {
- cooperative = coop;
+ cooperative = grl_media.get_boolean (metadata_key);
resolved = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]