diff --git a/repos/os/include/net/arp.h b/repos/os/include/net/arp.h index f292f801cf..1b9d8e7c0c 100644 --- a/repos/os/include/net/arp.h +++ b/repos/os/include/net/arp.h @@ -186,16 +186,6 @@ class Net::Arp_packet } - /*************** - ** Operators ** - ***************/ - - /** - * Placement new - */ - void * operator new(__SIZE_TYPE__, void* addr) { return addr; } - - /********* ** Log ** *********/ diff --git a/repos/os/include/net/dhcp.h b/repos/os/include/net/dhcp.h index 09674069d9..6b8446dd30 100644 --- a/repos/os/include/net/dhcp.h +++ b/repos/os/include/net/dhcp.h @@ -426,16 +426,6 @@ class Net::Dhcp_packet } - /*************** - ** Operators ** - ***************/ - - /** - * Placement new. - */ - void * operator new(__SIZE_TYPE__, void* addr) { return addr; } - - /********* ** log ** *********/ diff --git a/repos/os/include/net/ethernet.h b/repos/os/include/net/ethernet.h index 39e4172c40..df7c65cdd5 100644 --- a/repos/os/include/net/ethernet.h +++ b/repos/os/include/net/ethernet.h @@ -103,16 +103,6 @@ class Net::Ethernet_frame void type(Type type) { _type = host_to_big_endian((Genode::uint16_t)type); } - /*************** - ** Operators ** - ***************/ - - /** - * Placement new operator. - */ - void * operator new(__SIZE_TYPE__, void* addr) { return addr; } - - /********* ** log ** *********/ diff --git a/repos/os/include/net/ipv4.h b/repos/os/include/net/ipv4.h index 045bb3f44a..d9ac2fb74e 100644 --- a/repos/os/include/net/ipv4.h +++ b/repos/os/include/net/ipv4.h @@ -200,16 +200,6 @@ class Net::Ipv4_packet void dst(Ipv4_address v) { v.copy(&_dst); } - /*************** - ** Operators ** - ***************/ - - /** - * Placement new. - */ - void * operator new(__SIZE_TYPE__, void* addr) { return addr; } - - /********* ** log ** *********/ diff --git a/repos/os/include/net/tcp.h b/repos/os/include/net/tcp.h index 7c1b84bf5e..9ef22500e9 100644 --- a/repos/os/include/net/tcp.h +++ b/repos/os/include/net/tcp.h @@ -143,11 +143,6 @@ class Net::Tcp_packet _checksum = host_to_big_endian((uint16_t)~sum); } - /** - * Placement new - */ - void * operator new(__SIZE_TYPE__, void * addr) { return addr; } - /********* ** log ** diff --git a/repos/os/include/net/udp.h b/repos/os/include/net/udp.h index 3d72452137..e384434646 100644 --- a/repos/os/include/net/udp.h +++ b/repos/os/include/net/udp.h @@ -84,16 +84,6 @@ class Net::Udp_packet void dst_port(Port p) { _dst_port = host_to_big_endian(p.value); } - /*************** - ** Operators ** - ***************/ - - /** - * Placement new. - */ - void * operator new(__SIZE_TYPE__, void* addr) { return addr; } - - /*************************** ** Convenience functions ** ***************************/