mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
AK: Remove bitrotted Traits::dump() mechanism
This was only used by HashTable::dump() which I used when doing the first HashTable implementation. Removing this allows us to also remove most includes of <AK/kstdio.h>.
This commit is contained in:
parent
c8eaae3eaf
commit
6cbd72f54f
24 changed files with 3 additions and 63 deletions
|
@ -79,11 +79,6 @@ struct Traits<IPv4SocketTuple> : public GenericTraits<IPv4SocketTuple> {
|
|||
auto h2 = pair_int_hash(tuple.peer_address().to_u32(), tuple.peer_port());
|
||||
return pair_int_hash(h1, h2);
|
||||
}
|
||||
|
||||
static void dump(const IPv4SocketTuple& tuple)
|
||||
{
|
||||
kprintf("%s", tuple.to_string().characters());
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -82,7 +82,6 @@ namespace AK {
|
|||
template<>
|
||||
struct Traits<MACAddress> : public GenericTraits<MACAddress> {
|
||||
static unsigned hash(const MACAddress& address) { return string_hash((const char*)&address, sizeof(address)); }
|
||||
static void dump(const MACAddress& address) { kprintf("%s", address.to_string().characters()); }
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue