ocarina: Clean up library.cpp a bit

I reordered the functions and removed the unnecessary declaration from
the top of the file.
This commit is contained in:
Bryan Schumaker 2011-10-29 15:35:30 -04:00
parent c727aaa526
commit 6b12cff613
1 changed files with 6 additions and 8 deletions

View File

@ -12,10 +12,14 @@
using namespace std;
static SongList library_list;
void ocarina_library_refresh();
struct SongListFuncs library_funcs;
void ocarina_library_refresh()
{
library_list.clear();
library_list.fill();
}
void library_init()
{
library_funcs.for_each = libsaria::library::for_each;
@ -25,9 +29,3 @@ void library_init()
add_page(library_list.get_label(), library_list.get_window(), true);
ocarina_library_refresh();
}
void ocarina_library_refresh()
{
library_list.clear();
library_list.fill();
}