1
0
Fork 0
forked from len0rd/rockbox

plugins: Remove six API functions with no users

statusbars, gui_syncstatusbar_draw(), and set_time()
  mp3_play_data(), mp3_play_pause(), mp3_play_stop()

  [mp3_is_playing() is still used by imageviewer]

(followup to the sh/archos exorcism..)

Change-Id: I06a1d981ffc86b8073fcfa2380a393a07347ab3b
This commit is contained in:
Solomon Peachy 2020-07-18 23:02:58 -04:00
parent 658026e626
commit 503bb791b0
2 changed files with 2 additions and 19 deletions

View file

@ -596,10 +596,7 @@ static const struct plugin_api rockbox_api = {
#if defined (HAVE_PITCHCONTROL) #if defined (HAVE_PITCHCONTROL)
sound_set_pitch, sound_set_pitch,
#endif #endif
#if (CONFIG_PLATFORM & PLATFORM_NATIVE) #if (CONFIG_PLATFORM & PLATFORM_NATIVE) && defined(HAVE_DISK_STORAGE)
mp3_play_data,
mp3_play_pause,
mp3_play_stop,
mp3_is_playing, mp3_is_playing,
#endif #endif
&audio_master_sampr_list[0], &audio_master_sampr_list[0],
@ -711,10 +708,6 @@ static const struct plugin_api rockbox_api = {
root_menu_write_to_cfg, root_menu_write_to_cfg,
root_menu_load_from_cfg, root_menu_load_from_cfg,
/* statusbars */
&statusbars,
gui_syncstatusbar_draw,
/* options */ /* options */
get_settings_list, get_settings_list,
find_setting, find_setting,
@ -755,7 +748,6 @@ static const struct plugin_api rockbox_api = {
(void *)qsort, (void *)qsort,
kbd_input, kbd_input,
get_time, get_time,
set_time,
gmtime_r, gmtime_r,
#if CONFIG_RTC #if CONFIG_RTC
mktime, mktime,

View file

@ -665,11 +665,7 @@ struct plugin_api {
#if defined (HAVE_PITCHCONTROL) #if defined (HAVE_PITCHCONTROL)
void (*sound_set_pitch)(int32_t pitch); void (*sound_set_pitch)(int32_t pitch);
#endif #endif
#if (CONFIG_PLATFORM & PLATFORM_NATIVE) #if (CONFIG_PLATFORM & PLATFORM_NATIVE) && defined(HAVE_DISK_STORAGE)
void (*mp3_play_data)(const void* start, size_t size,
mp3_play_callback_t get_more);
void (*mp3_play_pause)(bool play);
void (*mp3_play_stop)(void);
bool (*mp3_is_playing)(void); bool (*mp3_is_playing)(void);
#endif /* PLATFORM_NATIVE */ #endif /* PLATFORM_NATIVE */
const unsigned long *audio_master_sampr_list; const unsigned long *audio_master_sampr_list;
@ -810,10 +806,6 @@ struct plugin_api {
char* (*root_menu_write_to_cfg)(void* setting, char*buf, int buf_len); char* (*root_menu_write_to_cfg)(void* setting, char*buf, int buf_len);
void (*root_menu_load_from_cfg)(void* setting, char *value); void (*root_menu_load_from_cfg)(void* setting, char *value);
/* statusbars */
struct gui_syncstatusbar *statusbars;
void (*gui_syncstatusbar_draw)(struct gui_syncstatusbar * bars, bool force_redraw);
/* options */ /* options */
const struct settings_list* (*get_settings_list)(int*count); const struct settings_list* (*get_settings_list)(int*count);
const struct settings_list* (*find_setting)(const void* variable, int *id); const struct settings_list* (*find_setting)(const void* variable, int *id);
@ -871,7 +863,6 @@ struct plugin_api {
int(*compar)(const void *, const void *)); int(*compar)(const void *, const void *));
int (*kbd_input)(char* buffer, int buflen, unsigned short *kbd); int (*kbd_input)(char* buffer, int buflen, unsigned short *kbd);
struct tm* (*get_time)(void); struct tm* (*get_time)(void);
int (*set_time)(const struct tm *tm);
struct tm * (*gmtime_r)(const time_t *timep, struct tm *tm); struct tm * (*gmtime_r)(const time_t *timep, struct tm *tm);
#if CONFIG_RTC #if CONFIG_RTC
time_t (*mktime)(struct tm *t); time_t (*mktime)(struct tm *t);