From 1b18069b77a5b4870ff738d69b687eecc5261336 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sun, 2 Oct 2011 11:07:36 -0400 Subject: [PATCH] ocarina: remove unnecessary add_callback() function It only called the register_callback() function, so there is no point in keeping it around. --- ocarina/callback.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ocarina/callback.cpp b/ocarina/callback.cpp index 235388a5..3871ca9b 100644 --- a/ocarina/callback.cpp +++ b/ocarina/callback.cpp @@ -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); }