LibCore: Replace MIME type description lookup with a more generic method

Rather than adding a bunch of `get_*_from_mime_type` functions, add just
one to get the Core::MimeType instance. We will need multiple fields at
once in Browser.
This commit is contained in:
Timothy Flynn 2024-03-14 19:15:40 -04:00 committed by Andreas Kling
commit 1f44c9468a
Notes: sideshowbarker 2024-07-16 18:03:21 +09:00
3 changed files with 8 additions and 8 deletions

View file

@ -61,6 +61,6 @@ struct MimeType {
u64 offset { 0 };
};
Optional<StringView> get_description_from_mime_type(StringView);
Optional<MimeType const&> get_mime_type_data(StringView);
}