[retro-gtk] retro-gobject: Remove unused Core.region
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-gobject: Remove unused Core.region
- Date: Fri, 20 Jan 2017 09:45:53 +0000 (UTC)
commit c8dd5b18d0b9ceac3c535e56b9bee68a6b105949
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jan 19 15:36:55 2017 +0100
retro-gobject: Remove unused Core.region
https://bugzilla.gnome.org/show_bug.cgi?id=777482
retro-gobject/Makefile.am | 1 -
retro-gobject/core.vala | 12 ------------
retro-gobject/module.vala | 7 -------
retro-gobject/region.vala | 15 ---------------
4 files changed, 0 insertions(+), 35 deletions(-)
---
diff --git a/retro-gobject/Makefile.am b/retro-gobject/Makefile.am
index 2047670..a260b35 100644
--- a/retro-gobject/Makefile.am
+++ b/retro-gobject/Makefile.am
@@ -47,7 +47,6 @@ libretro_gobject_la_SOURCES = \
game-info.vala \
memory.vala \
module.vala \
- region.vala \
retro.vala \
retro-module-query.vala \
rumble.vala \
diff --git a/retro-gobject/core.vala b/retro-gobject/core.vala
index 99485ad..b4b273d 100644
--- a/retro-gobject/core.vala
+++ b/retro-gobject/core.vala
@@ -102,18 +102,6 @@ public class Core : Object {
}
/**
- * The region of the loaded game.
- */
- public Region region {
- get {
- push_cb_data ();
- var result = game_loaded ? module.get_region () : Region.UNKNOWN;
- pop_cb_data ();
- return result;
- }
- }
-
- /**
* The file name of the module.
*/
public string file_name { construct; get; }
diff --git a/retro-gobject/module.vala b/retro-gobject/module.vala
index 9549d80..771c1fc 100644
--- a/retro-gobject/module.vala
+++ b/retro-gobject/module.vala
@@ -40,9 +40,6 @@ private delegate bool LoadGame (GameInfo game);
private delegate void UnloadGame ();
[CCode (has_target = false)]
-private delegate Region GetRegion ();
-
-[CCode (has_target = false)]
private delegate void *GetMemoryData (MemoryType id);
[CCode (has_target = false)]
private delegate size_t GetMemorySize (MemoryType id);
@@ -95,8 +92,6 @@ private class Module : Object {
public LoadGame load_game { get; private set; }
public UnloadGame unload_game { get; private set; }
- public GetRegion get_region { get; private set; }
-
public GetMemoryData get_memory_data { get; private set; }
public GetMemorySize get_memory_size { get; private set; }
@@ -201,8 +196,6 @@ private class Module : Object {
load_game = (LoadGame) function;
module.symbol ("retro_unload_game", out function);
unload_game = (UnloadGame) function;
- module.symbol ("retro_get_region", out function);
- get_region = (GetRegion) function;
module.symbol ("retro_get_memory_data", out function);
get_memory_data = (GetMemoryData) function;
module.symbol ("retro_get_memory_size", out function);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]