From cd244371b9b2f77dea7ecbd246fc75876dfe4070 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Jul 2019 18:56:18 +0200 Subject: [PATCH] Cleanups --- retroarch.c | 8 ++++---- retroarch.h | 47 ----------------------------------------------- 2 files changed, 4 insertions(+), 51 deletions(-) diff --git a/retroarch.c b/retroarch.c index 76affa8ad9..a390b0df2a 100644 --- a/retroarch.c +++ b/retroarch.c @@ -15712,7 +15712,7 @@ static void find_location_driver(void) * * Returns: true (1) if successful, otherwise false (0). **/ -bool driver_location_start(void) +static bool driver_location_start(void) { if (location_driver && location_data && location_driver->start) { @@ -15733,7 +15733,7 @@ bool driver_location_start(void) * * Returns: true (1) if successful, otherwise false (0). **/ -void driver_location_stop(void) +static void driver_location_stop(void) { if (location_driver && location_driver->stop && location_data) location_driver->stop(location_data); @@ -15747,7 +15747,7 @@ void driver_location_stop(void) * Sets interval update time for location driver interface. * Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE. **/ -void driver_location_set_interval(unsigned interval_msecs, +static void driver_location_set_interval(unsigned interval_msecs, unsigned interval_distance) { if (location_driver && location_driver->set_interval @@ -15769,7 +15769,7 @@ void driver_location_set_interval(unsigned interval_msecs, * * Returns: bool (1) if successful, otherwise false (0). **/ -bool driver_location_get_position(double *lat, double *lon, +static bool driver_location_get_position(double *lat, double *lon, double *horiz_accuracy, double *vert_accuracy) { if (location_driver && location_driver->get_position diff --git a/retroarch.h b/retroarch.h index 60af4a4819..2340b50b68 100644 --- a/retroarch.h +++ b/retroarch.h @@ -2070,53 +2070,6 @@ extern location_driver_t location_corelocation; extern location_driver_t location_android; extern location_driver_t location_null; -/** - * driver_location_start: - * - * Starts location driver interface.. - * Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE. - * - * Returns: true (1) if successful, otherwise false (0). - **/ -bool driver_location_start(void); - -/** - * driver_location_stop: - * - * Stops location driver interface.. - * Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE. - * - * Returns: true (1) if successful, otherwise false (0). - **/ -void driver_location_stop(void); - -/** - * driver_location_get_position: - * @lat : Latitude of current position. - * @lon : Longitude of current position. - * @horiz_accuracy : Horizontal accuracy. - * @vert_accuracy : Vertical accuracy. - * - * Gets current positioning information from - * location driver interface. - * Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE. - * - * Returns: bool (1) if successful, otherwise false (0). - **/ -bool driver_location_get_position(double *lat, double *lon, - double *horiz_accuracy, double *vert_accuracy); - -/** - * driver_location_set_interval: - * @interval_msecs : Interval time in milliseconds. - * @interval_distance : Distance at which to update. - * - * Sets interval update time for location driver interface. - * Used by RETRO_ENVIRONMENT_GET_LOCATION_INTERFACE. - **/ -void driver_location_set_interval(unsigned interval_msecs, - unsigned interval_distance); - /** * config_get_location_driver_options: *