dev: -Wdeprecated-copy not available on all supported compilers
[gem5.git] / src / dev / ps2 / touchkit.cc
index 7d651a648e9d700dd57d8dec68ce5c9e009c22a5..d772b2cb6807a47ab616bdd496c58458e78c481b 100644 (file)
@@ -46,9 +46,9 @@
 #include "dev/ps2/types.hh"
 #include "params/PS2TouchKit.hh"
 
-PS2TouchKit::PS2TouchKit(const PS2TouchKitParams *p)
+PS2TouchKit::PS2TouchKit(const PS2TouchKitParams &p)
     : PS2Device(p),
-      vnc(p->vnc),
+      vnc(p.vnc),
       enabled(false), touchKitEnabled(false)
 {
     if (vnc)
@@ -204,9 +204,3 @@ PS2TouchKit::mouseAt(uint16_t x, uint16_t y, uint8_t buttons)
 
     send(resp, sizeof(resp));
 }
-
-PS2TouchKit *
-PS2TouchKitParams::create()
-{
-    return new PS2TouchKit(this);
-}