[gnome-games/wip/exalm/metadata: 19/21] grilo-release-date: Inline load_media_release_date()
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/metadata: 19/21] grilo-release-date: Inline load_media_release_date()
- Date: Mon, 8 Oct 2018 21:43:24 +0000 (UTC)
commit 46452320c822e65fb4254ee1a0ecec95cf3b88a5
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Oct 9 02:34:09 2018 +0500
grilo-release-date: Inline load_media_release_date()
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-release-date.vala | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/src/grilo/grilo-release-date.vala b/src/grilo/grilo-release-date.vala
index cc697e03..d4febe9a 100644
--- a/src/grilo/grilo-release-date.vala
+++ b/src/grilo/grilo-release-date.vala
@@ -31,12 +31,7 @@ public class Games.GriloReleaseDate : Object, ReleaseDate {
if (grl_media.length (Grl.MetadataKey.PUBLICATION_DATE) == 0)
return;
- var release = grl_media.get_publication_date ();
- load_media_release_date (release);
- }
-
- private void load_media_release_date (DateTime release) {
- release_date = release;
+ release_date = grl_media.get_publication_date ();
resolved = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]