From f7aa064edc20eafbc738271c5b53238fa4ad8361 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 6 Jun 2013 08:11:28 +0200 Subject: Remove dead code --- ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp | 19 ------------------- ftnoir_protocol_mouse/ftnoir_protocol_mouse.h | 6 ------ .../ftnoir_protocol_mouse_dialog.cpp | 5 ----- 3 files changed, 30 deletions(-) (limited to 'ftnoir_protocol_mouse') diff --git a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp index 5dfd86b7..40558254 100644 --- a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp +++ b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp @@ -42,7 +42,6 @@ FTNoIR_Protocol::FTNoIR_Protocol() prev_fMouse_Y = 0.0f; prev_fMouse_Wheel = 0.0f; frame_delay = 0; - loadSettings(); } @@ -51,24 +50,6 @@ FTNoIR_Protocol::~FTNoIR_Protocol() { } -/** helper to Auto-destruct **/ -void FTNoIR_Protocol::Release() -{ - delete this; -} - -void FTNoIR_Protocol::Initialize() -{ -int ScreenX, ScreenY; - - ScreenX = GetSystemMetrics(SM_CXSCREEN); - ScreenY = GetSystemMetrics(SM_CYSCREEN); - - qDebug() << "Initialize(): Screen width (x) = " << ScreenX << ", height (y) = " << ScreenY; - - return; -} - // // Scale the measured value to the Joystick values // diff --git a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h index 5da5c540..d5c614fa 100644 --- a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h +++ b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h @@ -65,10 +65,6 @@ class FTNoIR_Protocol : public IProtocol public: FTNoIR_Protocol(); ~FTNoIR_Protocol(); - - void Release(); - void Initialize(); - bool checkServerInstallationOK(); void sendHeadposeToGame( double *headpose, double *rawheadpose ); @@ -106,8 +102,6 @@ public: explicit MOUSEControls(); virtual ~MOUSEControls(); void showEvent ( QShowEvent * event ); - - void Release(); // Member functions which are accessible from outside the DLL void Initialize(QWidget *parent); void registerProtocol(IProtocol *protocol) { theProtocol = (FTNoIR_Protocol *) protocol; // Accept the pointer to the Protocol diff --git a/ftnoir_protocol_mouse/ftnoir_protocol_mouse_dialog.cpp b/ftnoir_protocol_mouse/ftnoir_protocol_mouse_dialog.cpp index ff55a858..6882ab6a 100644 --- a/ftnoir_protocol_mouse/ftnoir_protocol_mouse_dialog.cpp +++ b/ftnoir_protocol_mouse/ftnoir_protocol_mouse_dialog.cpp @@ -102,11 +102,6 @@ MOUSEControls::~MOUSEControls() { qDebug() << "~MOUSEControls() says: started"; } -void MOUSEControls::Release() -{ - delete this; -} - // // Initialize tracker-client-dialog // -- cgit v1.2.3