SongFilter: make locate_parse_type() static

This commit is contained in:
Max Kellermann 2018-07-25 11:30:56 +02:00
parent 42ec67168a
commit 8661a51aba
2 changed files with 5 additions and 8 deletions

View File

@ -44,7 +44,11 @@
#define LOCATE_TAG_FILE_KEY_OLD "filename"
#define LOCATE_TAG_ANY_KEY "any"
unsigned
/**
* @return #TAG_NUM_OF_ITEM_TYPES on error
*/
gcc_pure
static unsigned
locate_parse_type(const char *str) noexcept
{
if (StringEqualsCaseASCII(str, LOCATE_TAG_FILE_KEY) ||

View File

@ -280,11 +280,4 @@ public:
SongFilter WithoutBasePrefix(const char *prefix) const noexcept;
};
/**
* @return #TAG_NUM_OF_ITEM_TYPES on error
*/
gcc_pure
unsigned
locate_parse_type(const char *str) noexcept;
#endif