diff --git a/src/helpers.cpp b/src/helpers.cpp index 4c1df9d0..e1b1cab9 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -224,11 +224,6 @@ void UpdateSongList(Menu *menu) menu->Refresh(); } -bool Keypressed(int in, const int *key) -{ - return in == key[0] || in == key[1]; -} - #ifdef HAVE_TAGLIB_H string FindSharedDir(Menu *menu) { diff --git a/src/helpers.h b/src/helpers.h index 69726a80..327590bf 100644 --- a/src/helpers.h +++ b/src/helpers.h @@ -52,9 +52,12 @@ template std::string StringPairToString(const std::pair return pair.first; } -void UpdateSongList(Menu *); +inline bool Keypressed(int in, const int *key) +{ + return in == key[0] || in == key[1]; +} -bool Keypressed(int, const int *); +void UpdateSongList(Menu *); #ifdef HAVE_TAGLIB_H std::string FindSharedDir(Menu *);