[retro-gtk] retro-gobject: Remove unused frame time callback interface
- From: Adrien Plazas <aplazas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [retro-gtk] retro-gobject: Remove unused frame time callback interface
- Date: Fri, 20 Jan 2017 09:45:12 +0000 (UTC)
commit 38d4f769aed0d79522cdb1c2f3076d9a5d0213f6
Author: Adrien Plazas <kekun plazas laposte net>
Date: Thu Jan 19 10:15:16 2017 +0100
retro-gobject: Remove unused frame time callback interface
https://bugzilla.gnome.org/show_bug.cgi?id=777482
retro-gobject/Makefile.am | 1 -
retro-gobject/core.vala | 10 --------
retro-gobject/frame-time.vala | 43 -------------------------------------
retro-gobject/retro-environment.c | 10 +-------
4 files changed, 1 insertions(+), 63 deletions(-)
---
diff --git a/retro-gobject/Makefile.am b/retro-gobject/Makefile.am
index c0836fa..d80e7c0 100644
--- a/retro-gobject/Makefile.am
+++ b/retro-gobject/Makefile.am
@@ -45,7 +45,6 @@ libretro_gobject_la_SOURCES = \
camera.vala \
core.vala \
disk-controller.vala \
- frame-time.vala \
game-info.vala \
game-type.vala \
language.vala \
diff --git a/retro-gobject/core.vala b/retro-gobject/core.vala
index 1e5dcc4..d25a4b7 100644
--- a/retro-gobject/core.vala
+++ b/retro-gobject/core.vala
@@ -174,16 +174,6 @@ public class Core : Object {
*/
public DiskControl disk_control_interface { internal set; get; }
- /**
- * The time input interface.
- *
- * The Core can set it to let the frontend inform it of the amount
- * of time passed since the last call to {@link run()}.
- *
- * TODO Change visibility once the interface have been tested.
- */
- internal FrameTime frame_time_callback { internal set; get; }
-
private weak Video _video_interface;
/**
* The video interface.
diff --git a/retro-gobject/retro-environment.c b/retro-gobject/retro-environment.c
index 4a2600c..fa8054b 100644
--- a/retro-gobject/retro-environment.c
+++ b/retro-gobject/retro-environment.c
@@ -477,12 +477,6 @@ static gboolean set_disk_control_interface (RetroCore *self, RetroDiskControlCal
return TRUE;
}
-static gboolean set_frame_time_callback (RetroCore *self, RetroCoreFrameTimeCallback *callback) {
- retro_core_set_frame_time_callback (self, RETRO_FRAME_TIME (retro_core_frame_time_new (callback)));
-
- return TRUE;
-}
-
static gboolean set_input_descriptors (RetroInput *self, RetroInputDescriptor *descriptors) {
int length;
for (length = 0 ; descriptors[length].description ; length++);
@@ -563,9 +557,6 @@ static gboolean environment_core_command (RetroCore *self, unsigned cmd, gpointe
case RETRO_ENVIRONMENT_SET_DISK_CONTROL_INTERFACE:
set_disk_control_interface (self, (RetroDiskControlCallback *) data);
- case RETRO_ENVIRONMENT_SET_FRAME_TIME_CALLBACK:
- return set_frame_time_callback (self, (RetroCoreFrameTimeCallback *) data);
-
case RETRO_ENVIRONMENT_SET_MESSAGE:
return set_message (self, (RetroMessage *) data);
@@ -585,6 +576,7 @@ static gboolean environment_core_command (RetroCore *self, unsigned cmd, gpointe
case RETRO_ENVIRONMENT_GET_USERNAME:
case RETRO_ENVIRONMENT_SET_AUDIO_CALLBACK:
case RETRO_ENVIRONMENT_SET_CONTROLLER_INFO:
+ case RETRO_ENVIRONMENT_SET_FRAME_TIME_CALLBACK:
case RETRO_ENVIRONMENT_SET_GEOMETRY:
case RETRO_ENVIRONMENT_SET_KEYBOARD_CALLBACK:
case RETRO_ENVIRONMENT_SET_MEMORY_MAPS:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]