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:
Gabe Black
2020-10-23 19:34:07 -07:00
parent 6c454ee53b
commit d05a0a4ea1
337 changed files with 56 additions and 2960 deletions

View File

@@ -253,10 +253,4 @@ DistEtherLink::LocalIface::LocalIface(const std::string &name,
rx->setDistInt(m);
}
DistEtherLink *
DistEtherLinkParams::create() const
{
return new DistEtherLink(*this);
}

View File

@@ -105,9 +105,3 @@ EtherBus::send(EtherInt *sndr, EthPacketPtr &pkt)
return true;
}
EtherBus *
EtherBusParams::create() const
{
return new EtherBus(*this);
}

View File

@@ -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);
}

View File

@@ -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);
}

View File

@@ -345,9 +345,3 @@ EtherSwitch::Interface::PortFifo::unserialize(CheckpointIn &cp)
}
}
EtherSwitch *
EtherSwitchParams::create() const
{
return new EtherSwitch(*this);
}

View File

@@ -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);
}

View File

@@ -2463,9 +2463,3 @@ IGbE::unserialize(CheckpointIn &cp)
txDescCache.unserializeSection(cp, "TxDescCache");
rxDescCache.unserializeSection(cp, "RxDescCache");
}
IGbE *
IGbEParams::create() const
{
return new IGbE(*this);
}

View File

@@ -2365,9 +2365,3 @@ NSGigE::unserialize(CheckpointIn &cp)
schedule(intrEvent, intrEventTick);
}
}
NSGigE *
NSGigEParams::create() const
{
return new NSGigE(*this);
}

View File

@@ -1501,9 +1501,3 @@ Device::unserialize(CheckpointIn &cp)
}
} // namespace Sinic
Sinic::Device *
SinicParams::create() const
{
return new Sinic::Device(*this);
}