mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Remove custom hash function for PropertyID
The default hash function for enums does the same thing
This commit is contained in:
parent
12716dccf0
commit
59a1184469
Notes:
github-actions[bot]
2025-10-27 14:52:24 +00:00
Author: https://github.com/Calme1709
Commit: 59a1184469
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6576
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 0 additions and 4 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue