Remove unused variable

This commit is contained in:
Cameron Gutman 2023-03-18 14:29:45 -05:00
parent 5f315d0093
commit db2b120b68
3 changed files with 3 additions and 6 deletions

View file

@ -9,7 +9,7 @@
#include <QDir>
#include <QGuiApplication>
SdlInputHandler::SdlInputHandler(StreamingPreferences& prefs, NvComputer* computer, int streamWidth, int streamHeight)
SdlInputHandler::SdlInputHandler(StreamingPreferences& prefs, int streamWidth, int streamHeight)
: m_MultiController(prefs.multiController),
m_GamepadMouse(prefs.gamepadMouse),
m_SwapMouseButtons(prefs.swapMouseButtons),

View file

@ -38,8 +38,7 @@ struct GamepadState {
class SdlInputHandler
{
public:
explicit SdlInputHandler(StreamingPreferences& prefs, NvComputer* computer,
int streamWidth, int streamHeight);
explicit SdlInputHandler(StreamingPreferences& prefs, int streamWidth, int streamHeight);
~SdlInputHandler();

View file

@ -1348,9 +1348,7 @@ void Session::execInternal()
// Initialize the gamepad code with our preferences
// NB: m_InputHandler must be initialize before starting the connection.
m_InputHandler = new SdlInputHandler(*m_Preferences, m_Computer,
m_StreamConfig.width,
m_StreamConfig.height);
m_InputHandler = new SdlInputHandler(*m_Preferences, m_StreamConfig.width, m_StreamConfig.height);
AsyncConnectionStartThread asyncConnThread(this);
if (!m_ThreadedExec) {