summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2021-12-24 04:40:30 +0100
committerAidan MacDonald <amachronic@protonmail.com>2021-12-24 10:37:28 -0500
commit747c8d5ea422d0eb93d85eabc18eb8887b10861d (patch)
tree012ae53eb01a83e57575ff3238eea9a522f3dda3 /apps
parent22d0c4da7085610136939ffe82bb3877a4fd8d5b (diff)
downloadrockbox-747c8d5ea422d0eb93d85eabc18eb8887b10861d.tar.gz
rockbox-747c8d5ea422d0eb93d85eabc18eb8887b10861d.zip
Remove dead code/documentation/comments
Change-Id: I4928d5967ad8a1f15b8725853102b74420252cc6
Diffstat (limited to 'apps')
-rw-r--r--apps/gui/statusbar.c12
-rw-r--r--apps/gui/statusbar.h3
-rw-r--r--apps/onplay.c2
-rw-r--r--apps/plugin.h1
4 files changed, 1 insertions, 17 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"