Skip to content

Commit 0f8b5e1

Browse files
committed
Fix build.
1 parent d5d23d2 commit 0f8b5e1

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

SerialPrograms/Source/Controllers/KeyboardInput/KeyboardInput.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@ namespace PokemonAutomation{
1717

1818
KeyboardInputController::~KeyboardInputController() = default;
1919
KeyboardInputController::KeyboardInputController(
20-
Logger& logger,
2120
bool allow_commands_while_running,
2221
std::chrono::milliseconds retry_delay
2322
)
24-
: m_logger(logger)
25-
, m_allow_commands_while_running(allow_commands_while_running)
23+
: m_allow_commands_while_running(allow_commands_while_running)
2624
, m_retry_delay(retry_delay)
2725
, m_last_known_state(ProgramState::STOPPED)
2826
, m_stop(false)

SerialPrograms/Source/Controllers/KeyboardInput/KeyboardInput.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class ControllerState{
4343
class KeyboardInputController{
4444
public:
4545
KeyboardInputController(
46-
Logger& logger,
4746
bool allow_commands_while_running,
4847
std::chrono::milliseconds retry_delay = std::chrono::milliseconds(10)
4948
);
@@ -78,7 +77,6 @@ class KeyboardInputController{
7877

7978

8079
private:
81-
Logger& m_logger;
8280
const bool m_allow_commands_while_running;
8381
const std::chrono::milliseconds m_retry_delay;
8482

SerialPrograms/Source/NintendoSwitch/Framework/NintendoSwitch_KeyboardInput.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ using namespace std::chrono_literals;
2323

2424

2525
VirtualController::VirtualController(
26-
Logger& logger,
2726
ControllerSession& session,
2827
bool allow_commands_while_running
2928
)
30-
: KeyboardInputController(logger, allow_commands_while_running)
29+
: KeyboardInputController(allow_commands_while_running)
3130
, m_session(session)
3231
{
3332
std::vector<std::shared_ptr<EditableTableRow>> mapping =

SerialPrograms/Source/NintendoSwitch/Framework/NintendoSwitch_KeyboardInput.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ namespace NintendoSwitch{
2121
class VirtualController : public KeyboardInputController{
2222
public:
2323
VirtualController(
24-
Logger& logger,
2524
ControllerSession& session,
2625
bool allow_commands_while_running
2726
);

SerialPrograms/Source/NintendoSwitch/Framework/UI/NintendoSwitch_CommandRow.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <QHBoxLayout>
88
#include "CommonFramework/GlobalSettingsPanel.h"
99
#include "CommonFramework/Options/Environment/ThemeSelectorOption.h"
10-
#include "CommonFramework/VideoPipeline/UI/VideoOverlayWidget.h"
1110
#include "CommonFramework/Recording/StreamHistoryOption.h"
1211
#include "NintendoSwitch_CommandRow.h"
1312

@@ -30,7 +29,7 @@ CommandRow::CommandRow(
3029
bool allow_commands_while_running
3130
)
3231
: QWidget(&parent)
33-
, VirtualController(controller.logger(), controller, allow_commands_while_running)
32+
, VirtualController(controller, allow_commands_while_running)
3433
, m_controller(controller)
3534
, m_session(session)
3635
, m_allow_commands_while_running(allow_commands_while_running)

0 commit comments

Comments
 (0)