mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 00:24:51 +00:00
net: remove placement new operators
They are not used any more. Issue #465
This commit is contained in:
parent
f4a2d932e3
commit
4f1d43ce21
@ -186,16 +186,6 @@ class Net::Arp_packet
|
||||
}
|
||||
|
||||
|
||||
/***************
|
||||
** Operators **
|
||||
***************/
|
||||
|
||||
/**
|
||||
* Placement new
|
||||
*/
|
||||
void * operator new(__SIZE_TYPE__, void* addr) { return addr; }
|
||||
|
||||
|
||||
/*********
|
||||
** Log **
|
||||
*********/
|
||||
|
@ -426,16 +426,6 @@ class Net::Dhcp_packet
|
||||
}
|
||||
|
||||
|
||||
/***************
|
||||
** Operators **
|
||||
***************/
|
||||
|
||||
/**
|
||||
* Placement new.
|
||||
*/
|
||||
void * operator new(__SIZE_TYPE__, void* addr) { return addr; }
|
||||
|
||||
|
||||
/*********
|
||||
** log **
|
||||
*********/
|
||||
|
@ -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 **
|
||||
*********/
|
||||
|
@ -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 **
|
||||
*********/
|
||||
|
@ -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 **
|
||||
|
@ -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 **
|
||||
***************************/
|
||||
|
Loading…
x
Reference in New Issue
Block a user