[retro-gtk] memory: Remove SNES memory types
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] memory: Remove SNES memory types
- Date: Sun, 30 Jul 2017 13:27:21 +0000 (UTC)
commit 452afeb766f3bbc38477e9c8eecc34e261f1664d
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Jul 25 09:12:09 2017 +0200
memory: Remove SNES memory types
It has even been removed by upstream. Also remove the type mask and the
base type getter as they are useless without the SNES specific types.
https://bugzilla.gnome.org/show_bug.cgi?id=777489
retro-gtk/memory.vala | 24 ------------------------
1 files changed, 0 insertions(+), 24 deletions(-)
---
diff --git a/retro-gtk/memory.vala b/retro-gtk/memory.vala
index 1a44a7a..5f39c4b 100644
--- a/retro-gtk/memory.vala
+++ b/retro-gtk/memory.vala
@@ -6,34 +6,10 @@ namespace Retro {
* The memory region types.
*/
public enum MemoryType {
- TYPE_MASK = 0xff,
SAVE_RAM = 0,
RTC = 1,
SYSTEM_RAM = 2,
VIDEO_RAM = 3,
- SNES_BSX_RAM = (1 << 8) | MemoryType.SAVE_RAM,
- SNES_BSX_PRAM = (2 << 8) | MemoryType.SAVE_RAM,
- SNES_SUFAMI_TURBO_A_RAM = (3 << 8) | MemoryType.SAVE_RAM,
- SNES_SUFAMI_TURBO_B_RAM = (4 << 8) | MemoryType.SAVE_RAM,
- SNES_GAME_BOY_RAM = (5 << 8) | MemoryType.SAVE_RAM,
- SNES_GAME_BOY_RTC = (6 << 8) | MemoryType.RTC;
-
- /**
- * Gets the basic type of a memory type.
- *
- * Applies the type mask on a MemoryType to get its basic type.
- * If the memory type is already basic, it will return the same type.
- *
- * E.g MemoryType.SNES_BSX_RAM.get_basic_type () returns
- * MemoryType.SAVE_RAM, and MemoryType.SAVE_RAM.get_basic_type () also
- * returns MemoryType.SAVE_RAM.
- *
- * @return the basic type of a memory type
- */
- public MemoryType get_basic_type () {
- var basic_type = this & MemoryType.TYPE_MASK;
- return basic_type;
- }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]