[gnome-games/wip/exalm/metadata: 6/21] grilo-description: Inline load_media_description()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/metadata: 6/21] grilo-description: Inline load_media_description()
- Date: Mon, 8 Oct 2018 21:42:19 +0000 (UTC)
commit 43e1ad1c6dcca6df2218fd8444a3bea1a6bad4f2
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Oct 9 02:16:40 2018 +0500
grilo-description: Inline load_media_description()
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-description.vala | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/grilo/grilo-description.vala b/src/grilo/grilo-description.vala
index 813baeca..7a9d824d 100644
--- a/src/grilo/grilo-description.vala
+++ b/src/grilo/grilo-description.vala
@@ -31,12 +31,7 @@ public class Games.GriloDescription : Object, Description {
if (grl_media.length (Grl.MetadataKey.DESCRIPTION) == 0)
return;
- var description_string = grl_media.get_description ();
- load_media_description (description_string);
- }
-
- private void load_media_description (string description_string) {
- description = description_string;
+ description = grl_media.get_description ();
resolved = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]