[retro-gtk] retro-gobject: Remove unused Core cheat methods
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-gobject: Remove unused Core cheat methods
- Date: Fri, 20 Jan 2017 09:45:48 +0000 (UTC)
commit fb9e61a7e358d67170f57cdaeb30413440f44f9f
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jan 19 15:31:57 2017 +0100
retro-gobject: Remove unused Core cheat methods
Remove unused Core.cheat_set() and Core.cheat_reset().
https://bugzilla.gnome.org/show_bug.cgi?id=777482
retro-gobject/core.vala | 22 ----------------------
retro-gobject/module.vala | 11 -----------
2 files changed, 0 insertions(+), 33 deletions(-)
---
diff --git a/retro-gobject/core.vala b/retro-gobject/core.vala
index 4445bfe..99485ad 100644
--- a/retro-gobject/core.vala
+++ b/retro-gobject/core.vala
@@ -471,28 +471,6 @@ public class Core : Object {
}
/**
- * Resets the cheats.
- */
- public void cheat_reset () {
- push_cb_data ();
- module.cheat_reset ();
- pop_cb_data ();
- }
-
- /**
- * Sets a new cheat.
- *
- * @param index the index of the cheat
- * @param enabled whether the cheat is enabled or not
- * @param code the cheat code
- */
- public void cheat_set (uint index, bool enabled, string code) {
- push_cb_data ();
- module.cheat_set (index, enabled, code);
- pop_cb_data ();
- }
-
- /**
* Load. a game.
*
* @param game information to load the game
diff --git a/retro-gobject/module.vala b/retro-gobject/module.vala
index 5101364..9549d80 100644
--- a/retro-gobject/module.vala
+++ b/retro-gobject/module.vala
@@ -33,10 +33,6 @@ private delegate bool Serialize ([CCode (array_length_type = "gsize")] uint8[] d
[CCode (has_target = false)]
private delegate bool Unserialize ([CCode (array_length_type = "gsize")] uint8[] data);
-[CCode (has_target = false)]
-private delegate void CheatReset ();
-[CCode (has_target = false)]
-private delegate void CheatSet (uint index, bool enabled, string code);
[CCode (has_target = false)]
private delegate bool LoadGame (GameInfo game);
@@ -96,9 +92,6 @@ private class Module : Object {
public Serialize serialize { get; private set; }
public Unserialize unserialize { get; private set; }
- public CheatReset cheat_reset { get; private set; }
- public CheatSet cheat_set { get; private set; }
-
public LoadGame load_game { get; private set; }
public UnloadGame unload_game { get; private set; }
@@ -204,10 +197,6 @@ private class Module : Object {
serialize = (Serialize) function;
module.symbol ("retro_unserialize", out function);
unserialize = (Unserialize) function;
- module.symbol ("retro_cheat_reset", out function);
- cheat_reset = (CheatReset) function;
- module.symbol ("retro_cheat_set", out function);
- cheat_set = (CheatSet) function;
module.symbol ("retro_load_game", out function);
load_game = (LoadGame) function;
module.symbol ("retro_unload_game", out function);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]