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:
@@ -171,10 +171,3 @@ PS2Keyboard::keyPress(uint32_t key, bool down)
|
||||
for (uint8_t c : keys)
|
||||
send(c);
|
||||
}
|
||||
|
||||
|
||||
PS2Keyboard *
|
||||
PS2KeyboardParams::create() const
|
||||
{
|
||||
return new PS2Keyboard(*this);
|
||||
}
|
||||
|
||||
@@ -166,9 +166,3 @@ PS2Mouse::unserialize(CheckpointIn &cp)
|
||||
UNSERIALIZE_SCALAR(resolution);
|
||||
UNSERIALIZE_SCALAR(sampleRate);
|
||||
}
|
||||
|
||||
PS2Mouse *
|
||||
PS2MouseParams::create() const
|
||||
{
|
||||
return new PS2Mouse(*this);
|
||||
}
|
||||
|
||||
@@ -204,9 +204,3 @@ PS2TouchKit::mouseAt(uint16_t x, uint16_t y, uint8_t buttons)
|
||||
|
||||
send(resp, sizeof(resp));
|
||||
}
|
||||
|
||||
PS2TouchKit *
|
||||
PS2TouchKitParams::create() const
|
||||
{
|
||||
return new PS2TouchKit(*this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user