diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-10 11:55:34 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-10 11:55:34 +0100 |
commit | 6cbd72f54f806a4bb78fc751523f022e887894ea (patch) | |
tree | 4cb0b5e75a2e052ba7f636df3f685b10cfa1c3db /Kernel/Net | |
parent | c8eaae3eaf72b84af756844b6e10e5b8452338f1 (diff) | |
download | serenity-6cbd72f54f806a4bb78fc751523f022e887894ea.zip |
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>.
Diffstat (limited to 'Kernel/Net')
-rw-r--r-- | Kernel/Net/IPv4SocketTuple.h | 5 | ||||
-rw-r--r-- | Kernel/Net/MACAddress.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/Kernel/Net/IPv4SocketTuple.h b/Kernel/Net/IPv4SocketTuple.h index 5e21932aea..56876e2818 100644 --- a/Kernel/Net/IPv4SocketTuple.h +++ b/Kernel/Net/IPv4SocketTuple.h @@ -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()); - } }; } diff --git a/Kernel/Net/MACAddress.h b/Kernel/Net/MACAddress.h index e6456a6677..4ad391d0fa 100644 --- a/Kernel/Net/MACAddress.h +++ b/Kernel/Net/MACAddress.h @@ -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()); } }; } |