net: remove placement new operators

They are not used any more.

Issue #465
This commit is contained in:
Martin Stein 2018-01-08 20:04:30 +01:00 committed by Christian Helmuth
parent f4a2d932e3
commit 4f1d43ce21
6 changed files with 0 additions and 55 deletions

View File

@ -186,16 +186,6 @@ class Net::Arp_packet
}
/***************
** Operators **
***************/
/**
* Placement new
*/
void * operator new(__SIZE_TYPE__, void* addr) { return addr; }
/*********
** Log **
*********/

View File

@ -426,16 +426,6 @@ class Net::Dhcp_packet
}
/***************
** Operators **
***************/
/**
* Placement new.
*/
void * operator new(__SIZE_TYPE__, void* addr) { return addr; }
/*********
** log **
*********/

View File

@ -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 **
*********/

View File

@ -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 **
*********/

View File

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

View File

@ -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 **
***************************/