From db2b120b687ad0d59d823ebe1b0a137cb3f76c10 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 18 Mar 2023 14:29:45 -0500 Subject: [PATCH] Remove unused variable --- app/streaming/input/input.cpp | 2 +- app/streaming/input/input.h | 3 +-- app/streaming/session.cpp | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/streaming/input/input.cpp b/app/streaming/input/input.cpp index a8725e48..7858f822 100644 --- a/app/streaming/input/input.cpp +++ b/app/streaming/input/input.cpp @@ -9,7 +9,7 @@ #include #include -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), diff --git a/app/streaming/input/input.h b/app/streaming/input/input.h index 5e8ce9cb..41aa3f77 100644 --- a/app/streaming/input/input.h +++ b/app/streaming/input/input.h @@ -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(); diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index ea21cbdb..35e0b7c1 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -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) {