From 747c8d5ea422d0eb93d85eabc18eb8887b10861d Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Fri, 24 Dec 2021 04:40:30 +0100 Subject: Remove dead code/documentation/comments Change-Id: I4928d5967ad8a1f15b8725853102b74420252cc6 --- apps/gui/statusbar.c | 12 ------------ apps/gui/statusbar.h | 3 +-- apps/onplay.c | 2 -- apps/plugin.h | 1 - docs/PLUGIN_API | 12 ------------ 5 files changed, 1 insertion(+), 29 deletions(-) diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index a961d191b2..74da14bd3f 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c @@ -725,18 +725,6 @@ void gui_syncstatusbar_init(struct gui_syncstatusbar * bars) } } -void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, - bool force_redraw) -{ - if(!global_settings.statusbar) - return; - struct viewport viewport; - FOR_NB_SCREENS(i) { - GET_RECT(viewport,statusbar_position(i),&screens[i]); - gui_statusbar_draw( &(bars->statusbars[i]), force_redraw, &viewport ); - } -} - #ifdef HAVE_REMOTE_LCD enum statusbar_values statusbar_position(int screen) diff --git a/apps/gui/statusbar.h b/apps/gui/statusbar.h index a676c7b143..c62434155d 100644 --- a/apps/gui/statusbar.h +++ b/apps/gui/statusbar.h @@ -99,8 +99,7 @@ struct gui_syncstatusbar }; extern void gui_syncstatusbar_init(struct gui_syncstatusbar * bars) INIT_ATTR; -extern void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, - bool force_redraw); + #if !defined(HAVE_REMOTE_LCD) || defined(__PCTOOL__) #include "settings.h" #define statusbar_position(a) ((enum statusbar_values)global_settings.statusbar) diff --git a/apps/onplay.c b/apps/onplay.c index 8f2c3c4f4a..c3e1ebec54 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -425,10 +425,8 @@ static bool playing_time(void) gui_synclist_set_voice_callback(&pt_lists, playing_time_speak_info); gui_synclist_set_nb_items(&pt_lists, 8); gui_synclist_draw(&pt_lists); -/* gui_syncstatusbar_draw(&statusbars, true); */ gui_synclist_speak_item(&pt_lists); while (true) { -/* gui_syncstatusbar_draw(&statusbars, false); */ if (list_do_action(CONTEXT_LIST, HZ/2, &pt_lists, &key, LIST_WRAP_UNLESS_HELD) == 0 && key!=ACTION_NONE && key!=ACTION_UNKNOWN) diff --git a/apps/plugin.h b/apps/plugin.h index 7306e3fcba..38d44530b0 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -94,7 +94,6 @@ int plugin_open(const char *plugin, const char *parameter); #include "scrollbar.h" #include "jpeg_load.h" #include "../recorder/bmp.h" -#include "statusbar.h" #include "menu.h" #include "rbunicode.h" #include "list.h" diff --git a/docs/PLUGIN_API b/docs/PLUGIN_API index 94729a728b..8814833959 100644 --- a/docs/PLUGIN_API +++ b/docs/PLUGIN_API @@ -750,13 +750,6 @@ void gui_synclist_set_title(struct gui_synclist *lists, char* title, int icon) \param icon \description -void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, bool force_redraw) - \group scroll bar - \param bars - \param force_redraw refreshes =bars= if true - \description Draws an initialized statusbar =bars= on the screen and refreshs it if =force_redraw= is true. - \see [S[apps/gui/statusbar.h]] - enum yesno_res gui_syncyesno_run(const struct text_message * main_message, const struct text_message * yes_message, const struct text_message * no_message) \group list \param main_message @@ -1969,11 +1962,6 @@ void srand(unsigned int seed) \param seed \description Seed the random number generator -struct gui_syncstatusbar *statusbars - \group scroll bar - \return - \description - int strcasecmp(const char *, const char *) \group strings and memory \param -- cgit v1.2.3