diff options
author | Max Kellermann <max@duempel.org> | 2013-10-26 15:52:49 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-26 15:52:49 +0200 |
commit | 9f21eee2ec942829fe4e122f309a6bf5dd3df366 (patch) | |
tree | acff58752760ed02bac87749bd3a566cdfaef474 /src/tag | |
parent | a40246d3123d4bd0d1be638cd7f7b91274d8f23d (diff) | |
download | mpd-9f21eee2ec942829fe4e122f309a6bf5dd3df366.tar.gz mpd-9f21eee2ec942829fe4e122f309a6bf5dd3df366.tar.xz mpd-9f21eee2ec942829fe4e122f309a6bf5dd3df366.zip |
ApeTag: simplify the "recognized" flag
Diffstat (limited to 'src/tag')
-rw-r--r-- | src/tag/ApeTag.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/tag/ApeTag.cxx b/src/tag/ApeTag.cxx index 1ba645369..ab7ddbe7a 100644 --- a/src/tag/ApeTag.cxx +++ b/src/tag/ApeTag.cxx @@ -63,7 +63,6 @@ tag_ape_import_item(unsigned long flags, if (type == TAG_NUM_OF_ITEM_TYPES) return false; - bool recognized = false; const char *end = value + value_length; while (true) { /* multiple values are separated by null bytes */ @@ -72,7 +71,6 @@ tag_ape_import_item(unsigned long flags, if (n > value) { tag_handler_invoke_tag(handler, handler_ctx, type, value); - recognized = true; } value = n + 1; @@ -80,12 +78,11 @@ tag_ape_import_item(unsigned long flags, const std::string value2(value, end); tag_handler_invoke_tag(handler, handler_ctx, type, value2.c_str()); - recognized = true; break; } } - return recognized; + return true; } bool |