[gnome-games/wip/exalm/runner: 13/14] core: Remove Developer



commit 3fd5970fad4fcd43ff2748d2f29b9a871ab50fa7
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Sun Sep 15 00:53:14 2019 +0500

    core: Remove Developer
    
    Since the developers view doesn't exist anymore, it's unused.

 plugins/dreamcast/src/dreamcast-plugin.vala        |  2 -
 plugins/game-cube/src/game-cube-plugin.vala        |  2 -
 plugins/mame/src/mame-game-uri-adapter.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/developer.vala                            | 19 ------
 src/core/game.vala                                 |  1 -
 src/database/database-developer.vala               | 75 ----------------------
 src/database/database-game.vala                    |  4 --
 src/database/database.vala                         |  4 --
 src/dummy/dummy-developer.vala                     |  7 --
 src/dummy/dummy-game.vala                          |  4 --
 src/generic/generic-developer.vala                 | 13 ----
 src/generic/generic-game.vala                      | 12 ----
 src/grilo/grilo-developer.vala                     | 43 -------------
 src/meson.build                                    |  5 --
 src/retro/retro-simple-game-uri-adapter.vala       |  2 -
 23 files changed, 211 deletions(-)
---
diff --git a/plugins/dreamcast/src/dreamcast-plugin.vala b/plugins/dreamcast/src/dreamcast-plugin.vala
index bb570af9..1c7ad861 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 developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -51,7 +50,6 @@ private class Games.DreamcastPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               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 469f081a..360a9b16 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 developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -51,7 +50,6 @@ private class Games.GameCubePlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_developer (developer);
 
                return game;
        }
diff --git a/plugins/mame/src/mame-game-uri-adapter.vala b/plugins/mame/src/mame-game-uri-adapter.vala
index c831e98e..48347a1f 100644
--- a/plugins/mame/src/mame-game-uri-adapter.vala
+++ b/plugins/mame/src/mame-game-uri-adapter.vala
@@ -27,7 +27,6 @@ private class Games.MameGameUriAdapter : GameUriAdapter, Object {
                var title = new GenericTitle (title_string);
 
                var cover = new LocalCover (uri);
-               var developer = new GenericDeveloper (info.company);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -42,7 +41,6 @@ private class Games.MameGameUriAdapter : GameUriAdapter, Object {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               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 68897f82..a851c9da 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 developer = new GriloDeveloper (media);
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
@@ -46,7 +45,6 @@ private class Games.MsDosPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               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 a29d3377..e4e0ce14 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 developer = new GriloDeveloper (media);
                var cover = new CompositeCover ({
                        new LocalCover (uri),
                        new GriloCover (media, uid)});
@@ -49,7 +48,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_developer (developer);
 
                return game;
        }
diff --git a/plugins/playstation/src/playstation-game-factory.vala 
b/plugins/playstation/src/playstation-game-factory.vala
index fe631766..cbb6be63 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 developer = new GriloDeveloper (media);
                var input_capabilities = new GameinfoDiscIdInputCapabilities (gameinfo, disc_set_id);
                var core_source = new RetroCoreSource (platform);
 
@@ -156,7 +155,6 @@ public class Games.PlayStationGameFactory : Object, UriGameFactory {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               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 59996b6e..a82c9021 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 developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -92,7 +91,6 @@ private class Games.SegaCDPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               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 d3b2601f..3f3ac026 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 developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -75,7 +74,6 @@ private class Games.SegaSaturnPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               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 830f5ec4..5a6dabd8 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 developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -54,7 +53,6 @@ private class Games.TurboGrafxCDPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               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 c03053e9..0142462e 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 developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -52,7 +51,6 @@ private class Games.VirtualBoyPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_developer (developer);
 
                return game;
        }
diff --git a/plugins/wii/src/wii-plugin.vala b/plugins/wii/src/wii-plugin.vala
index 82484369..d803f68c 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 developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -51,7 +50,6 @@ private class Games.WiiPlugin : Object, Plugin {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_developer (developer);
 
                return game;
        }
diff --git a/src/core/game.vala b/src/core/game.vala
index bfdd630d..056c18a5 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 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 c2b0f1ad..5353f19e 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 Developer get_developer () {
-               return database.get_developer (game.get_developer (), get_uid ());
-       }
-
        public Platform get_platform () {
                return game.get_platform ();
        }
diff --git a/src/database/database.vala b/src/database/database.vala
index b513df88..ee1d884b 100644
--- a/src/database/database.vala
+++ b/src/database/database.vala
@@ -67,10 +67,6 @@ private class Games.Database : Object {
                return new DatabaseUid (database, uid);
        }
 
-       public DatabaseDeveloper get_developer (Developer developer, Uid uid) {
-               return new DatabaseDeveloper (database, developer, uid);
-       }
-
        private void create_tables () throws Error {
                exec (CREATE_RESOURCES_TABLE_QUERY, null);
                exec (CREATE_METADATA_TABLE_QUERY, null);
diff --git a/src/dummy/dummy-game.vala b/src/dummy/dummy-game.vala
index c9b5c859..869228e2 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 Developer get_developer () {
-               return new DummyDeveloper ();
-       }
-
        public Platform get_platform () {
                return new DummyPlatform ();
        }
diff --git a/src/generic/generic-game.vala b/src/generic/generic-game.vala
index 25d648db..a047fcc2 100644
--- a/src/generic/generic-game.vala
+++ b/src/generic/generic-game.vala
@@ -21,7 +21,6 @@ public class Games.GenericGame : Object, Game {
        private Uid game_uid;
        private Title game_title;
        private Icon game_icon;
-       private Developer game_developer;
        private Cover game_cover;
        private Platform game_platform;
        private Runner game_runner;
@@ -59,17 +58,6 @@ public class Games.GenericGame : Object, Game {
                game_cover = cover;
        }
 
-       public Developer get_developer () {
-               if (game_developer == null)
-                       game_developer = new DummyDeveloper ();
-
-               return game_developer;
-       }
-
-       public void set_developer (Developer developer) {
-               game_developer = developer;
-       }
-
        public Platform get_platform () {
                return game_platform;
        }
diff --git a/src/meson.build b/src/meson.build
index feaa03d2..28afeee5 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -15,7 +15,6 @@ vala_sources = [
   'command/command-runner.vala',
 
   'core/cover.vala',
-  'core/developer.vala',
   'core/game.vala',
   'core/game-callback.vala',
   'core/game-collection.vala',
@@ -43,7 +42,6 @@ vala_sources = [
   'core/uri-source.vala',
 
   'database/database.vala',
-  'database/database-developer.vala',
   'database/database-error.vala',
   'database/database-game.vala',
   'database/database-uid.vala',
@@ -51,7 +49,6 @@ vala_sources = [
   'database/database-uri-source.vala',
 
   'dummy/dummy-cover.vala',
-  'dummy/dummy-developer.vala',
   'dummy/dummy-game.vala',
   'dummy/dummy-icon.vala',
   'dummy/dummy-platform.vala',
@@ -68,7 +65,6 @@ vala_sources = [
   'gamepad/gamepad-input.vala',
   'gamepad/gamepad-mapping-builder.vala',
 
-  'generic/generic-developer.vala',
   'generic/generic-game.vala',
   'generic/generic-game-uri-adapter.vala',
   'generic/generic-platform.vala',
@@ -77,7 +73,6 @@ vala_sources = [
   'generic/generic-uri-game-factory.vala',
 
   'grilo/grilo-cover.vala',
-  'grilo/grilo-developer.vala',
   'grilo/grilo-media.vala',
 
   'keyboard/keyboard-mapping-builder.vala',
diff --git a/src/retro/retro-simple-game-uri-adapter.vala b/src/retro/retro-simple-game-uri-adapter.vala
index 01125e66..2d63db73 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 developer = new GriloDeveloper (media);
                var core_source = new RetroCoreSource (platform);
 
                var builder = new RetroRunnerBuilder ();
@@ -31,7 +30,6 @@ private class Games.RetroSimpleGameUriAdapter : GameUriAdapter, Object {
 
                var game = new GenericGame (uid, title, platform, runner);
                game.set_cover (cover);
-               game.set_developer (developer);
 
                return game;
        }


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