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:
parent
c727aaa526
commit
6b12cff613
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue