[gnome-games/wip/exalm/metadata: 17/21] grilo-rating: Inline load_media_rating()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/metadata: 17/21] grilo-rating: Inline load_media_rating()
- Date: Mon, 8 Oct 2018 21:43:14 +0000 (UTC)
commit 09d875fc288cbb4bc9c65de830a03a4afba09370
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Oct 9 02:33:59 2018 +0500
grilo-rating: Inline load_media_rating()
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-rating.vala | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/grilo/grilo-rating.vala b/src/grilo/grilo-rating.vala
index bf0347a2..508d7dc1 100644
--- a/src/grilo/grilo-rating.vala
+++ b/src/grilo/grilo-rating.vala
@@ -31,12 +31,7 @@ public class Games.GriloRating : Object, Rating {
if (grl_media.length (Grl.MetadataKey.RATING) == 0)
return;
- var media_rating = grl_media.get_rating ();
- load_media_rating (media_rating);
- }
-
- private void load_media_rating (float media_rating) {
- rating = media_rating;
+ rating = grl_media.get_rating ();
resolved = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]