mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibWeb: Remove custom hash function for PropertyID
The default hash function for enums does the same thing
This commit is contained in:
Notes:
github-actions[bot]
2025-10-27 14:52:24 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/59a11844696 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6576 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -338,10 +338,6 @@ Optional<LogicalPropertyGroup> logical_property_group_for_property(PropertyID);
|
||||
} // namespace Web::CSS
|
||||
|
||||
namespace AK {
|
||||
template<>
|
||||
struct Traits<Web::CSS::PropertyID> : public DefaultTraits<Web::CSS::PropertyID> {
|
||||
static unsigned hash(Web::CSS::PropertyID property_id) { return int_hash((unsigned)property_id); }
|
||||
};
|
||||
|
||||
template<>
|
||||
struct Formatter<Web::CSS::PropertyID> : Formatter<StringView> {
|
||||
|
||||
Reference in New Issue
Block a user