misc: Delete the now unnecessary create methods.
Most create() methods are no longer necessary. This change deletes them, and occasionally moves some code from them into the constructors they call. Change-Id: Icbab29ba280144b892f9b12fac9e29a0839477e5 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/36536 Reviewed-by: Gabe Black <gabe.black@gmail.com> Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -253,10 +253,4 @@ DistEtherLink::LocalIface::LocalIface(const std::string &name,
|
||||
rx->setDistInt(m);
|
||||
}
|
||||
|
||||
DistEtherLink *
|
||||
DistEtherLinkParams::create() const
|
||||
{
|
||||
return new DistEtherLink(*this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -105,9 +105,3 @@ EtherBus::send(EtherInt *sndr, EthPacketPtr &pkt)
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
EtherBus *
|
||||
EtherBusParams::create() const
|
||||
{
|
||||
return new EtherBus(*this);
|
||||
}
|
||||
|
||||
@@ -100,9 +100,3 @@ EtherDump::dumpPacket(EthPacketPtr &packet)
|
||||
stream->write(reinterpret_cast<char *>(packet->data), pkthdr.caplen);
|
||||
stream->flush();
|
||||
}
|
||||
|
||||
EtherDump *
|
||||
EtherDumpParams::create() const
|
||||
{
|
||||
return new EtherDump(*this);
|
||||
}
|
||||
|
||||
@@ -264,9 +264,3 @@ EtherLink::Link::unserialize(const string &base, CheckpointIn &cp)
|
||||
"in-flight packets may have been dropped.\n");
|
||||
}
|
||||
}
|
||||
|
||||
EtherLink *
|
||||
EtherLinkParams::create() const
|
||||
{
|
||||
return new EtherLink(*this);
|
||||
}
|
||||
|
||||
@@ -345,9 +345,3 @@ EtherSwitch::Interface::PortFifo::unserialize(CheckpointIn &cp)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
EtherSwitch *
|
||||
EtherSwitchParams::create() const
|
||||
{
|
||||
return new EtherSwitch(*this);
|
||||
}
|
||||
|
||||
@@ -469,16 +469,4 @@ EtherTap::sendReal(const void *data, size_t len)
|
||||
return true;
|
||||
}
|
||||
|
||||
EtherTap *
|
||||
EtherTapParams::create() const
|
||||
{
|
||||
return new EtherTap(*this);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
EtherTapStub *
|
||||
EtherTapStubParams::create() const
|
||||
{
|
||||
return new EtherTapStub(*this);
|
||||
}
|
||||
|
||||
@@ -2463,9 +2463,3 @@ IGbE::unserialize(CheckpointIn &cp)
|
||||
txDescCache.unserializeSection(cp, "TxDescCache");
|
||||
rxDescCache.unserializeSection(cp, "RxDescCache");
|
||||
}
|
||||
|
||||
IGbE *
|
||||
IGbEParams::create() const
|
||||
{
|
||||
return new IGbE(*this);
|
||||
}
|
||||
|
||||
@@ -2365,9 +2365,3 @@ NSGigE::unserialize(CheckpointIn &cp)
|
||||
schedule(intrEvent, intrEventTick);
|
||||
}
|
||||
}
|
||||
|
||||
NSGigE *
|
||||
NSGigEParams::create() const
|
||||
{
|
||||
return new NSGigE(*this);
|
||||
}
|
||||
|
||||
@@ -1501,9 +1501,3 @@ Device::unserialize(CheckpointIn &cp)
|
||||
}
|
||||
|
||||
} // namespace Sinic
|
||||
|
||||
Sinic::Device *
|
||||
SinicParams::create() const
|
||||
{
|
||||
return new Sinic::Device(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user