Commit bb009daf authored by Max Kellermann's avatar Max Kellermann

playlist/registry: simplify ExtractMimeTypeMainPart()

parent dc432f3f
...@@ -207,11 +207,7 @@ gcc_pure ...@@ -207,11 +207,7 @@ gcc_pure
static StringView static StringView
ExtractMimeTypeMainPart(StringView s) noexcept ExtractMimeTypeMainPart(StringView s) noexcept
{ {
const auto separator = s.Find(';'); return s.Split(';').first;
if (separator != nullptr)
s.SetEnd(separator);
return s;
} }
static std::unique_ptr<SongEnumerator> static std::unique_ptr<SongEnumerator>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment