ocarina: remove unnecessary add_callback() function

It only called the register_callback() function, so there is no point in
keeping it around.
This commit is contained in:
Bryan Schumaker 2011-10-02 11:07:36 -04:00
parent ef7d9d0fe2
commit 1b18069b77
1 changed files with 4 additions and 9 deletions

View File

@ -31,16 +31,11 @@ void cb_library_refresh()
ocarina_library_refresh();
}
static void add_callback(callback_t type, void (* func)())
{
register_callback(type, func);
}
void setup_callbacks()
{
println("Ocarina setting up callbacks");
add_callback(PLAY, cb_play);
add_callback(PAUSE, cb_pause);
add_callback(IDLE_TASK_QUEUED, cb_idle_task_queued);
add_callback(LIBRARY_REFRESH, cb_library_refresh);
register_callback(PLAY, cb_play);
register_callback(PAUSE, cb_pause);
register_callback(IDLE_TASK_QUEUED, cb_idle_task_queued);
register_callback(LIBRARY_REFRESH, cb_library_refresh);
}