From cfbeed0c29b37c9ac4ca21ad1a2e73e61350b9e8 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 9 Jul 2019 17:07:28 +0200 Subject: [PATCH] Cleanups --- retroarch.c | 6 ++++-- runahead/dirty_input.h | 14 -------------- 2 files changed, 4 insertions(+), 16 deletions(-) delete mode 100644 runahead/dirty_input.h diff --git a/retroarch.c b/retroarch.c index d6455f149c..24e0ae91d5 100644 --- a/retroarch.c +++ b/retroarch.c @@ -168,7 +168,6 @@ #include "retroarch.h" #ifdef HAVE_RUNAHEAD -#include "runahead/dirty_input.h" #include "runahead/copy_load_info.h" #include "runahead/mylist.h" #include "runahead/mem_util.h" @@ -706,6 +705,9 @@ static bool secondary_core_create(void) static void secondary_core_input_poll_null(void) { } +static int16_t input_state_get_last(unsigned port, + unsigned device, unsigned index, unsigned id); + bool secondary_core_run_use_last_input(void) { retro_input_poll_t old_poll_function; @@ -13477,7 +13479,7 @@ static void input_state_set_last(unsigned port, unsigned device, element->state[id] = value; } -int16_t input_state_get_last(unsigned port, +static int16_t input_state_get_last(unsigned port, unsigned device, unsigned index, unsigned id) { unsigned i; diff --git a/runahead/dirty_input.h b/runahead/dirty_input.h deleted file mode 100644 index 6428fe45ba..0000000000 --- a/runahead/dirty_input.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef __DIRTY_INPUT_H___ -#define __DIRTY_INPUT_H___ - -#include -#include - -RETRO_BEGIN_DECLS - -int16_t input_state_get_last(unsigned port, - unsigned device, unsigned index, unsigned id); - -RETRO_END_DECLS - -#endif