LibWeb: Remove custom hash function for PropertyID

The default hash function for enums does the same thing
This commit is contained in:
Callum Law 2025-10-25 12:12:39 +13:00 committed by Sam Atkins
parent 12716dccf0
commit 59a1184469
Notes: github-actions[bot] 2025-10-27 14:52:24 +00:00

View file

@ -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> {