[gnome-games] core: Remove MediaInfo
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] core: Remove MediaInfo
- Date: Sat, 8 Feb 2020 18:33:30 +0000 (UTC)
commit 060de4680cd893bb7b38e621b9150f762355ce36
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sat Feb 8 23:32:13 2020 +0500
core: Remove MediaInfo
Every Media object has one, but it's never used.
src/core/media-info.vala | 15 ---------------
src/core/media.vala | 7 -------
src/meson.build | 1 -
3 files changed, 23 deletions(-)
---
diff --git a/src/core/media.vala b/src/core/media.vala
index e7dba742..292bf5fe 100644
--- a/src/core/media.vala
+++ b/src/core/media.vala
@@ -3,20 +3,13 @@
public class Games.Media : Object {
public Title? title { get; private set; }
- private MediaInfo media_info;
private Uri[] uris;
public Media (Title? title = null) {
- this.media_info = new MediaInfo ("Dummy", "dummy", null, 0);
this.title = title;
this.uris = {};
}
- public MediaInfo get_media_info () {
- // FIXME A proper MediaInfo shbould be returned at all time.
- return media_info ?? new MediaInfo ("Dummy", "dummy", null, 0);
- }
-
public Uri[] get_uris () {
return uris;
}
diff --git a/src/meson.build b/src/meson.build
index d7a74275..e59bce18 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -24,7 +24,6 @@ vala_sources = [
'core/input-capabilities.vala',
'core/input-mode.vala',
'core/media.vala',
- 'core/media-info.vala',
'core/media-set/media-set.vala',
'core/media-set/media-set-error.vala',
'core/migrator.vala',
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]