1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00

LibUnicode: Remove completely unused code point name & block name data

These were used for e.g. the Character Map on Serenity, but are not used
at all for Ladybird.
This commit is contained in:
Timothy Flynn 2024-06-18 10:57:14 -04:00 committed by Andreas Kling
parent 9c3a775395
commit 1feef17bf7
Notes: sideshowbarker 2024-07-16 18:03:21 +09:00
5 changed files with 1 additions and 328 deletions

View file

@ -21,11 +21,7 @@
namespace Unicode {
Optional<ByteString> __attribute__((weak)) code_point_display_name(u32) { return {}; }
Optional<StringView> __attribute__((weak)) code_point_block_display_name(u32) { return {}; }
Optional<StringView> __attribute__((weak)) code_point_abbreviation(u32) { return {}; }
u32 __attribute__((weak)) canonical_combining_class(u32) { return {}; }
ReadonlySpan<BlockName> __attribute__((weak)) block_display_names() { return {}; }
u32 __attribute__((weak)) to_unicode_lowercase(u32 code_point)
{

View file

@ -29,17 +29,6 @@ struct CodePointRangeComparator {
}
};
struct BlockName {
CodePointRange code_point_range {};
StringView display_name;
};
Optional<ByteString> code_point_display_name(u32 code_point);
Optional<StringView> code_point_block_display_name(u32 code_point);
Optional<StringView> code_point_abbreviation(u32 code_point);
ReadonlySpan<BlockName> block_display_names();
u32 canonical_combining_class(u32 code_point);
// Note: The single code point case conversions only perform simple case folding.