From 6b12cff6136dafd329838f13c3bf5c0ef07b9684 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sat, 29 Oct 2011 15:35:30 -0400 Subject: [PATCH] ocarina: Clean up library.cpp a bit I reordered the functions and removed the unnecessary declaration from the top of the file. --- ocarina/library.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/ocarina/library.cpp b/ocarina/library.cpp index 341b6f9e..8a149307 100644 --- a/ocarina/library.cpp +++ b/ocarina/library.cpp @@ -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(); -}