Remove led_null.c

This commit is contained in:
twinaphex 2020-01-06 16:29:25 +01:00
parent 2ad394148a
commit 641662d77c
5 changed files with 11 additions and 31 deletions

View File

@ -207,7 +207,6 @@ OBJ += \
input/common/input_hid_common.o \
input/input_mapper.o \
led/led_driver.o \
led/drivers/led_null.o \
gfx/video_coord_array.o \
gfx/video_display_server.o \
gfx/video_crt_switch.o \

View File

@ -797,8 +797,6 @@ LEDS
#include "../led/led_driver.c"
#include "../led/drivers/led_null.c"
#if defined(HAVE_RPILED)
#include "../led/drivers/led_rpi.c"
#endif

View File

@ -1,27 +0,0 @@
/* RetroArch - A frontend for libretro.
*
* RetroArch is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "../led_driver.h"
#include "../../verbosity.h"
static void null_led_init(void) { }
static void null_led_free(void) { }
static void null_led_set(int led, int state) { }
const led_driver_t null_led_driver = {
null_led_init,
null_led_free,
null_led_set,
"null"
};

View File

@ -21,6 +21,17 @@
static const led_driver_t *current_led_driver = NULL;
static void null_led_init(void) { }
static void null_led_free(void) { }
static void null_led_set(int led, int state) { }
static const led_driver_t null_led_driver = {
null_led_init,
null_led_free,
null_led_set,
"null"
};
bool led_driver_init(void)
{
settings_t *settings = config_get_ptr();

View File

@ -41,7 +41,6 @@ void led_driver_free(void);
void led_driver_set_led(int led, int value);
extern const led_driver_t null_led_driver;
extern const led_driver_t overlay_led_driver;
extern const led_driver_t rpi_led_driver;