device: delete InputDevice copy ctor / assign operator

This commit is contained in:
rdb 2018-09-28 17:20:50 +02:00
parent 9b85a28861
commit 85752b06f5
4 changed files with 3 additions and 45 deletions

View File

@ -37,22 +37,6 @@ InputDevice(const std::string &name, DeviceClass dev_class, int flags) :
_button_events = new ButtonEventList; _button_events = new ButtonEventList;
} }
/**
*
*/
InputDevice::
InputDevice(const InputDevice &copy) {
nassertv(false);
}
/**
*
*/
void InputDevice::
operator = (const InputDevice &copy) {
nassertv(false);
}
/** /**
* *
*/ */

View File

@ -165,9 +165,9 @@ protected:
public: public:
InputDevice(); InputDevice();
InputDevice(const InputDevice &copy); InputDevice(const InputDevice &copy) = delete;
void operator = (const InputDevice &copy); InputDevice &operator = (const InputDevice &copy) = delete;
~InputDevice(); virtual ~InputDevice();
INLINE std::string get_name() const; INLINE std::string get_name() const;
INLINE std::string get_manufacturer() const; INLINE std::string get_manufacturer() const;

View File

@ -62,29 +62,6 @@ pointer_and_keyboard(GraphicsWindow *host, const string &name) {
GraphicsWindowInputDevice(host, name, IDF_has_pointer | IDF_has_keyboard); GraphicsWindowInputDevice(host, name, IDF_has_pointer | IDF_has_keyboard);
} }
/**
*
*/
GraphicsWindowInputDevice::
GraphicsWindowInputDevice(const GraphicsWindowInputDevice &copy) {
*this = copy;
}
/**
*
*/
void GraphicsWindowInputDevice::
operator = (const GraphicsWindowInputDevice &copy) {
InputDevice::operator = (copy);
}
/**
*
*/
GraphicsWindowInputDevice::
~GraphicsWindowInputDevice() {
}
/** /**
* Records that the indicated button has been depressed. * Records that the indicated button has been depressed.
*/ */

View File

@ -35,9 +35,6 @@ public:
static PT(GraphicsWindowInputDevice) pointer_and_keyboard(GraphicsWindow *host, const std::string &name); static PT(GraphicsWindowInputDevice) pointer_and_keyboard(GraphicsWindow *host, const std::string &name);
INLINE GraphicsWindowInputDevice(); INLINE GraphicsWindowInputDevice();
GraphicsWindowInputDevice(const GraphicsWindowInputDevice &copy);
void operator = (const GraphicsWindowInputDevice &copy);
~GraphicsWindowInputDevice();
PUBLISHED: PUBLISHED:
// The following interface is for the various kinds of GraphicsWindows to // The following interface is for the various kinds of GraphicsWindows to