remove dead code.
This commit is contained in:
1 parent
a0a7c6d88c
commit
6b9fc231e1
32 files changed
+193
-855
No files matched your search
+13
-27
@@ -31,30 +31,8 @@ NS_LOG_COMPONENT_DEFINE ("EthernetHeader");
|
||||
|
||||
namespace ns3 {
|
||||
|
||||
NS_HEADER_ENSURE_REGISTERED (EthernetHeader);
|
||||
NS_OBJECT_ENSURE_REGISTERED (EthernetHeader);
|
||||
|
||||
TypeId
|
||||
EthernetHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::EthernetHeader")
|
||||
.SetParent<Header> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
TypeId
|
||||
EthernetHeader::GetInstanceTypeId (void) const
|
||||
{
|
||||
return GetTypeId ();
|
||||
}
|
||||
|
||||
uint32_t
|
||||
EthernetHeader::GetUid (void)
|
||||
{
|
||||
static uint32_t uid = AllocateUid<EthernetHeader> ("EthernetHeader.ns3");
|
||||
return uid;
|
||||
}
|
||||
|
||||
EthernetHeader::EthernetHeader (bool hasPreamble)
|
||||
: m_enPreambleSfd (hasPreamble),
|
||||
m_lengthType (0)
|
||||
@@ -121,12 +99,20 @@ EthernetHeader::GetHeaderSize (void) const
|
||||
return GetSerializedSize();
|
||||
}
|
||||
|
||||
std::string
|
||||
EthernetHeader::GetName (void) const
|
||||
{
|
||||
return "ETHERNET";
|
||||
}
|
||||
|
||||
TypeId
|
||||
EthernetHeader::GetTypeId (void)
|
||||
{
|
||||
static TypeId tid = TypeId ("ns3::EthernetHeader")
|
||||
.SetParent<Header> ()
|
||||
;
|
||||
return tid;
|
||||
}
|
||||
TypeId
|
||||
EthernetHeader::GetInstanceTypeId (void) const
|
||||
{
|
||||
return GetTypeId ();
|
||||
}
|
||||
void
|
||||
EthernetHeader::Print (std::ostream &os) const
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user