diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2009-11-11 06:39:23 +0000 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2009-11-11 06:39:23 +0000 |
commit | 7c440bff3254250711e1768de2769dc68185fefd (patch) | |
tree | da885d57a4bbc9db64994c37f7eb7d13a7f2353b /apps/gui/viewport.c | |
parent | 664dc90e714837bec83153daa13ef39769705c78 (diff) |
remove 3 bad viewport functions:
* viewport_set_current_vp() because if a screen wants to not use the user setting it shouldn't be dealing with the viewport manager at all (other than to disable the bars)
* viewport_ui_vp_get_state() is unused (and not needed)
* viewport_get_current_vp() because you should be using set_defaults() instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23606 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/viewport.c')
-rw-r--r-- | apps/gui/viewport.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 8e00ea3a71..0a2630cc9e 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -242,27 +242,6 @@ static void viewportmanager_ui_vp_changed(void *param) screens[i].update(); } -void viewport_set_current_vp(struct viewport* vp) -{ - if (vp != NULL) - ui_vp_info.vp = vp; - else - ui_vp_info.vp = custom_vp; - - /* must be done after the assignment above or event handler get old vps */ - send_event(GUI_EVENT_THEME_CHANGED, NULL); -} - -struct viewport* viewport_get_current_vp(void) -{ - return ui_vp_info.vp; -} - -bool viewport_ui_vp_get_state(enum screen_type screen) -{ - return ui_vp_info.active[screen]; -} - /* * (re)parse the UI vp from the settings * - Returns |