From f6468961b869dcc46e754bbfe0055e4c7b4fea9d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 27 Apr 2013 12:51:07 +0200 Subject: Remove old way of getting the game name, which had a buffer size cap. --- ftnoir_protocol_fg/ftnoir_protocol_fg.cpp | 9 --------- ftnoir_protocol_fg/ftnoir_protocol_fg.h | 2 -- ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp | 9 --------- ftnoir_protocol_ftn/ftnoir_protocol_ftn.h | 1 - ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp | 9 --------- ftnoir_protocol_mouse/ftnoir_protocol_mouse.h | 1 - 6 files changed, 31 deletions(-) diff --git a/ftnoir_protocol_fg/ftnoir_protocol_fg.cpp b/ftnoir_protocol_fg/ftnoir_protocol_fg.cpp index 1303d051..e15f5965 100644 --- a/ftnoir_protocol_fg/ftnoir_protocol_fg.cpp +++ b/ftnoir_protocol_fg/ftnoir_protocol_fg.cpp @@ -224,15 +224,6 @@ bool FTNoIR_Protocol::checkServerInstallationOK() return true; } -// -// Return a name, if present the name from the Game, that is connected... -// -void FTNoIR_Protocol::getNameFromGame( char *dest ) -{ - sprintf(dest, "FlightGear"); - return; -} - //////////////////////////////////////////////////////////////////////////////// // Factory function that creates instances if the Protocol object. diff --git a/ftnoir_protocol_fg/ftnoir_protocol_fg.h b/ftnoir_protocol_fg/ftnoir_protocol_fg.h index 45d4c67d..87002213 100644 --- a/ftnoir_protocol_fg/ftnoir_protocol_fg.h +++ b/ftnoir_protocol_fg/ftnoir_protocol_fg.h @@ -52,8 +52,6 @@ public: bool checkServerInstallationOK(); void sendHeadposeToGame( double *headpose, double *rawheadpose ); - void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars... - private: bool blnConnectionActive; diff --git a/ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp b/ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp index b8cc0703..424dc5aa 100644 --- a/ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp +++ b/ftnoir_protocol_ftn/ftnoir_protocol_ftn.cpp @@ -114,15 +114,6 @@ bool FTNoIR_Protocol::checkServerInstallationOK() return true; } -// -// Return a name, if present the name from the Game, that is connected... -// -void FTNoIR_Protocol::getNameFromGame( char *dest ) -{ - sprintf(dest, "FaceTrackNoIR UDP"); - return; -} - //////////////////////////////////////////////////////////////////////////////// // Factory function that creates instances if the Protocol object. diff --git a/ftnoir_protocol_ftn/ftnoir_protocol_ftn.h b/ftnoir_protocol_ftn/ftnoir_protocol_ftn.h index 6b4f3978..d6a30da7 100644 --- a/ftnoir_protocol_ftn/ftnoir_protocol_ftn.h +++ b/ftnoir_protocol_ftn/ftnoir_protocol_ftn.h @@ -49,7 +49,6 @@ public: bool checkServerInstallationOK(); void sendHeadposeToGame( double *headpose, double *rawheadpose ); - void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars... QString getGameName() { return "UDP Tracker"; } diff --git a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp index 35198cb1..de31cd79 100644 --- a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp +++ b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.cpp @@ -160,15 +160,6 @@ bool FTNoIR_Protocol::checkServerInstallationOK() return true; } -// -// Return a name, if present the name from the Game, that is connected... -// -void FTNoIR_Protocol::getNameFromGame( char *dest ) -{ - sprintf(dest, "Mouse"); - return; -} - //////////////////////////////////////////////////////////////////////////////// // Factory function that creates instances if the Protocol object. diff --git a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h index c33865ef..5da5c540 100644 --- a/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h +++ b/ftnoir_protocol_mouse/ftnoir_protocol_mouse.h @@ -71,7 +71,6 @@ public: bool checkServerInstallationOK(); void sendHeadposeToGame( double *headpose, double *rawheadpose ); - void getNameFromGame( char *dest ); // Take care dest can handle up to 100 chars... private: HANDLE h; -- cgit v1.2.3