summaryrefslogtreecommitdiff
path: root/apps/menus
diff options
context:
space:
mode:
authorThom Johansen <thomj@rockbox.org>2007-12-08 01:45:04 +0000
committerThom Johansen <thomj@rockbox.org>2007-12-08 01:45:04 +0000
commit39e2de8f1b75c1fe12b99fab49d7e34ea2d91563 (patch)
treebd57f9802ecd2981dd5658f144f250c8581a28c3 /apps/menus
parent4c4b3a314aa5ba39f55a90faa6887ebcb29398c3 (diff)
Crossfeed settings used to be stored inverted in the cfg file for legacy reasons, change that and kill some identical formatting functions while we're at it. NOTE TO CROSSFEED USERS: this will completely garble your crossfeed settings, write them down if you want to keep them.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15895 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menus')
-rw-r--r--apps/menus/eq_menu.c8
-rw-r--r--apps/menus/eq_menu.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/apps/menus/eq_menu.c b/apps/menus/eq_menu.c
index b3e67e42ef..1dbb5541c5 100644
--- a/apps/menus/eq_menu.c
+++ b/apps/menus/eq_menu.c
@@ -51,14 +51,6 @@
* Utility functions
*/
-void eq_gain_format(char* buffer, size_t buffer_size, int value, const char* unit)
-{
- int v = abs(value);
-
- snprintf(buffer, buffer_size, "%s%d.%d %s", value < 0 ? "-" : "",
- v / EQ_USER_DIVISOR, v % EQ_USER_DIVISOR, unit);
-}
-
void eq_q_format(char* buffer, size_t buffer_size, int value, const char* unit)
{
snprintf(buffer, buffer_size, "%d.%d %s", value / EQ_USER_DIVISOR, value % EQ_USER_DIVISOR, unit);
diff --git a/apps/menus/eq_menu.h b/apps/menus/eq_menu.h
index ebeedff787..cc73d7bff0 100644
--- a/apps/menus/eq_menu.h
+++ b/apps/menus/eq_menu.h
@@ -41,7 +41,6 @@ bool eq_browse_presets(void);
bool eq_menu_graphical(void);
/* utility functions for settings_list.c */
-void eq_gain_format(char* buffer, size_t buffer_size, int value, const char* unit);
void eq_q_format(char* buffer, size_t buffer_size, int value, const char* unit);
void eq_precut_format(char* buffer, size_t buffer_size, int value, const char* unit);