[gnome-games/wip/exalm/runner: 7/9] core: Remove ReleaseDate



commit a3becca1762d3440c0360eee43e40c2f5294b869
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Sep 15 00:45:24 2019 +0500

    core: Remove ReleaseDate
    
    It has never been used.

 plugins/dreamcast/src/dreamcast-plugin.vala        |  2 --
 plugins/game-cube/src/game-cube-plugin.vala        |  2 --
 plugins/ms-dos/src/ms-dos-plugin.vala              |  2 --
 plugins/nintendo-ds/src/nintendo-ds-plugin.vala    |  2 --
 .../playstation/src/playstation-game-factory.vala  |  2 --
 plugins/sega-cd/src/sega-cd-plugin.vala            |  2 --
 plugins/sega-saturn/src/sega-saturn-plugin.vala    |  2 --
 .../turbografx-cd/src/turbografx-cd-plugin.vala    |  2 --
 plugins/virtual-boy/src/virtual-boy-plugin.vala    |  2 --
 plugins/wii/src/wii-plugin.vala                    |  2 --
 src/core/game.vala                                 |  1 -
 src/core/release-date.vala                         |  7 ----
 src/database/database-game.vala                    |  4 ---
 src/dummy/dummy-game.vala                          |  4 ---
 src/dummy/dummy-release-date.vala                  |  7 ----
 src/generic/generic-game.vala                      | 12 -------
 src/generic/generic-release-date.vala              | 13 -------
 src/grilo/grilo-release-date.vala                  | 40 ----------------------
 src/meson.build                                    |  4 ---
 src/retro/retro-simple-game-uri-adapter.vala       |  2 --
 20 files changed, 114 deletions(-)
---
diff --git a/plugins/dreamcast/src/dreamcast-plugin.vala b/plugins/dreamcast/src/dreamcast-plugin.vala
index 67072389..bb570af9 100644
--- a/plugins/dreamcast/src/dreamcast-plugin.vala
+++ b/plugins/dreamcast/src/dreamcast-plugin.vala
@@ -39,7 +39,6 @@ private class Games.DreamcastPlugin : Object, Plugin {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
@@ -52,7 +51,6 @@ private class Games.DreamcastPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/game-cube/src/game-cube-plugin.vala b/plugins/game-cube/src/game-cube-plugin.vala
index 63de494a..469f081a 100644
--- a/plugins/game-cube/src/game-cube-plugin.vala
+++ b/plugins/game-cube/src/game-cube-plugin.vala
@@ -39,7 +39,6 @@ private class Games.GameCubePlugin : Object, Plugin {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
@@ -52,7 +51,6 @@ private class Games.GameCubePlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/ms-dos/src/ms-dos-plugin.vala b/plugins/ms-dos/src/ms-dos-plugin.vala
index 45c028a1..68897f82 100644
--- a/plugins/ms-dos/src/ms-dos-plugin.vala
+++ b/plugins/ms-dos/src/ms-dos-plugin.vala
@@ -28,7 +28,6 @@ private class Games.MsDosPlugin : Object, Plugin {
                var uid = new FingerprintUid (uri, PLATFORM_UID_PREFIX);
                var title = new FilenameTitle (uri);
                var media = new GriloMedia (title, MIME_TYPE);
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var cover = new CompositeCover ({
                        new LocalCover (uri),
@@ -47,7 +46,6 @@ private class Games.MsDosPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
index 3355a6fc..a29d3377 100644
--- a/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
+++ b/plugins/nintendo-ds/src/nintendo-ds-plugin.vala
@@ -33,7 +33,6 @@ private class Games.NintendoDsPlugin : Object, Plugin {
                var title = new FilenameTitle (uri);
                var icon = new NintendoDsIcon (uri);
                var media = new GriloMedia (title, MIME_TYPE);
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var cover = new CompositeCover ({
                        new LocalCover (uri),
@@ -50,7 +49,6 @@ private class Games.NintendoDsPlugin : Object, Plugin {
                var game = new GenericGame (uid, title, platform, runner);
                game.set_icon (icon);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/playstation/src/playstation-game-factory.vala 
b/plugins/playstation/src/playstation-game-factory.vala
index 8a526801..fe631766 100644
--- a/plugins/playstation/src/playstation-game-factory.vala
+++ b/plugins/playstation/src/playstation-game-factory.vala
@@ -142,7 +142,6 @@ public class Games.PlayStationGameFactory : Object, UriGameFactory {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var input_capabilities = new GameinfoDiscIdInputCapabilities (gameinfo, disc_set_id);
                var core_source = new RetroCoreSource (platform);
@@ -157,7 +156,6 @@ public class Games.PlayStationGameFactory : Object, UriGameFactory {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/sega-cd/src/sega-cd-plugin.vala b/plugins/sega-cd/src/sega-cd-plugin.vala
index 2856d945..59996b6e 100644
--- a/plugins/sega-cd/src/sega-cd-plugin.vala
+++ b/plugins/sega-cd/src/sega-cd-plugin.vala
@@ -80,7 +80,6 @@ private class Games.SegaCDPlugin : Object, Plugin {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
@@ -93,7 +92,6 @@ private class Games.SegaCDPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/sega-saturn/src/sega-saturn-plugin.vala b/plugins/sega-saturn/src/sega-saturn-plugin.vala
index 0bc5fb19..d3b2601f 100644
--- a/plugins/sega-saturn/src/sega-saturn-plugin.vala
+++ b/plugins/sega-saturn/src/sega-saturn-plugin.vala
@@ -63,7 +63,6 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
@@ -76,7 +75,6 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/turbografx-cd/src/turbografx-cd-plugin.vala 
b/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
index 755ea533..830f5ec4 100644
--- a/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
+++ b/plugins/turbografx-cd/src/turbografx-cd-plugin.vala
@@ -42,7 +42,6 @@ private class Games.TurboGrafxCDPlugin : Object, Plugin {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
@@ -55,7 +54,6 @@ private class Games.TurboGrafxCDPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/virtual-boy/src/virtual-boy-plugin.vala b/plugins/virtual-boy/src/virtual-boy-plugin.vala
index 5ac1c205..c03053e9 100644
--- a/plugins/virtual-boy/src/virtual-boy-plugin.vala
+++ b/plugins/virtual-boy/src/virtual-boy-plugin.vala
@@ -40,7 +40,6 @@ private class Games.VirtualBoyPlugin : Object, Plugin {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
@@ -53,7 +52,6 @@ private class Games.VirtualBoyPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/plugins/wii/src/wii-plugin.vala b/plugins/wii/src/wii-plugin.vala
index 3ba49103..82484369 100644
--- a/plugins/wii/src/wii-plugin.vala
+++ b/plugins/wii/src/wii-plugin.vala
@@ -39,7 +39,6 @@ private class Games.WiiPlugin : Object, Plugin {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
@@ -52,7 +51,6 @@ private class Games.WiiPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;
diff --git a/src/core/game.vala b/src/core/game.vala
index 7d051431..bfdd630d 100644
--- a/src/core/game.vala
+++ b/src/core/game.vala
@@ -6,7 +6,6 @@ public interface Games.Game : Object {
        public abstract Uid get_uid ();
        public abstract Icon get_icon ();
        public abstract Cover get_cover ();
-       public abstract ReleaseDate get_release_date ();
        public abstract Developer get_developer ();
        public abstract Platform get_platform ();
        public abstract Runner get_runner () throws Error;
diff --git a/src/database/database-game.vala b/src/database/database-game.vala
index fac68d66..c2b0f1ad 100644
--- a/src/database/database-game.vala
+++ b/src/database/database-game.vala
@@ -25,10 +25,6 @@ private class Games.DatabaseGame : Object, Game {
                return game.get_cover ();
        }
 
-       public ReleaseDate get_release_date () {
-               return game.get_release_date ();
-       }
-
        public Developer get_developer () {
                return database.get_developer (game.get_developer (), get_uid ());
        }
diff --git a/src/dummy/dummy-game.vala b/src/dummy/dummy-game.vala
index 47b0c25b..c9b5c859 100644
--- a/src/dummy/dummy-game.vala
+++ b/src/dummy/dummy-game.vala
@@ -30,10 +30,6 @@ private class Games.DummyGame : Object, Game {
                return new DummyCover ();
        }
 
-       public ReleaseDate get_release_date () {
-               return new DummyReleaseDate ();
-       }
-
        public Developer get_developer () {
                return new DummyDeveloper ();
        }
diff --git a/src/generic/generic-game.vala b/src/generic/generic-game.vala
index 889621bb..25d648db 100644
--- a/src/generic/generic-game.vala
+++ b/src/generic/generic-game.vala
@@ -23,7 +23,6 @@ public class Games.GenericGame : Object, Game {
        private Icon game_icon;
        private Developer game_developer;
        private Cover game_cover;
-       private ReleaseDate game_release_date;
        private Platform game_platform;
        private Runner game_runner;
 
@@ -60,17 +59,6 @@ public class Games.GenericGame : Object, Game {
                game_cover = cover;
        }
 
-       public ReleaseDate get_release_date () {
-               if (game_release_date == null)
-                       game_release_date = new DummyReleaseDate ();
-
-               return game_release_date;
-       }
-
-       public void set_release_date (ReleaseDate release_date) {
-               game_release_date = release_date;
-       }
-
        public Developer get_developer () {
                if (game_developer == null)
                        game_developer = new DummyDeveloper ();
diff --git a/src/meson.build b/src/meson.build
index 5f2ca51d..feaa03d2 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -34,7 +34,6 @@ vala_sources = [
   'core/plugin-register.vala',
   'core/plugin-register-iterator.vala',
   'core/plugin-registrar.vala',
-  'core/release-date.vala',
   'core/runner.vala',
   'core/savestate.vala',
   'core/title.vala',
@@ -56,7 +55,6 @@ vala_sources = [
   'dummy/dummy-game.vala',
   'dummy/dummy-icon.vala',
   'dummy/dummy-platform.vala',
-  'dummy/dummy-release-date.vala',
   'dummy/dummy-runner.vala',
   'dummy/dummy-uid.vala',
 
@@ -74,7 +72,6 @@ vala_sources = [
   'generic/generic-game.vala',
   'generic/generic-game-uri-adapter.vala',
   'generic/generic-platform.vala',
-  'generic/generic-release-date.vala',
   'generic/generic-title.vala',
   'generic/generic-uid.vala',
   'generic/generic-uri-game-factory.vala',
@@ -82,7 +79,6 @@ vala_sources = [
   'grilo/grilo-cover.vala',
   'grilo/grilo-developer.vala',
   'grilo/grilo-media.vala',
-  'grilo/grilo-release-date.vala',
 
   'keyboard/keyboard-mapping-builder.vala',
   'keyboard/keyboard-mapping-manager.vala',
diff --git a/src/retro/retro-simple-game-uri-adapter.vala b/src/retro/retro-simple-game-uri-adapter.vala
index dfd4fc0f..01125e66 100644
--- a/src/retro/retro-simple-game-uri-adapter.vala
+++ b/src/retro/retro-simple-game-uri-adapter.vala
@@ -19,7 +19,6 @@ private class Games.RetroSimpleGameUriAdapter : GameUriAdapter, Object {
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
-               var release_date = new GriloReleaseDate (media);
                var developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
@@ -32,7 +31,6 @@ private class Games.RetroSimpleGameUriAdapter : GameUriAdapter, Object {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_release_date (release_date);
                game.set_developer (developer);
 
                return game;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]