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:
@@ -82,11 +82,3 @@ SerialNullDevice::readData()
|
||||
{
|
||||
panic("SerialNullDevice does not have pending data.\n");
|
||||
}
|
||||
|
||||
|
||||
|
||||
SerialNullDevice *
|
||||
SerialNullDeviceParams::create() const
|
||||
{
|
||||
return new SerialNullDevice(*this);
|
||||
}
|
||||
|
||||
@@ -78,9 +78,3 @@ SimpleUart::write(PacketPtr pkt)
|
||||
pkt->makeAtomicResponse();
|
||||
return pioDelay;
|
||||
}
|
||||
|
||||
SimpleUart *
|
||||
SimpleUartParams::create() const
|
||||
{
|
||||
return new SimpleUart(*this);
|
||||
}
|
||||
|
||||
@@ -359,9 +359,3 @@ Terminal::writeData(uint8_t c)
|
||||
isprint(c) ? c : ' ', (int)c);
|
||||
|
||||
}
|
||||
|
||||
Terminal *
|
||||
TerminalParams::create() const
|
||||
{
|
||||
return new Terminal(*this);
|
||||
}
|
||||
|
||||
@@ -319,9 +319,3 @@ Uart8250::unserialize(CheckpointIn &cp)
|
||||
if (txintrwhen != 0)
|
||||
schedule(txIntrEvent, txintrwhen);
|
||||
}
|
||||
|
||||
Uart8250 *
|
||||
Uart8250Params::create() const
|
||||
{
|
||||
return new Uart8250(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user