From 7a362bf8f657f1e27b21b4ea09022506365a6ae8 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 4 Dec 2022 21:05:57 +1000 Subject: [PATCH] Qt: Remove dead code from ControllerBindingWidget_Base This was moved to the settings tab a while back. --- .../controllerbindingwidgets.cpp | 31 ------------------- 1 file changed, 31 deletions(-) diff --git a/src/duckstation-qt/controllerbindingwidgets.cpp b/src/duckstation-qt/controllerbindingwidgets.cpp index 5f10518cc..00e576796 100644 --- a/src/duckstation-qt/controllerbindingwidgets.cpp +++ b/src/duckstation-qt/controllerbindingwidgets.cpp @@ -779,37 +779,6 @@ void ControllerBindingWidget_Base::initBindingWidgets() default: break; } - - if (QSlider* widget = findChild(QStringLiteral("AnalogDeadzone")); widget) - { - const float range = static_cast(widget->maximum()); - QLabel* label = findChild(QStringLiteral("AnalogDeadzoneLabel")); - if (label) - { - connect(widget, &QSlider::valueChanged, this, [range, label](int value) { - label->setText(tr("%1%").arg((static_cast(value) / range) * 100.0f, 0, 'f', 0)); - }); - } - - ControllerSettingWidgetBinder::BindWidgetToInputProfileNormalized(sif, widget, config_section, "AnalogDeadzone", - range, Controller::DEFAULT_STICK_DEADZONE); - } - - if (QSlider* widget = findChild(QStringLiteral("AnalogSensitivity")); widget) - { - // position 1.0f at the halfway point - const float range = static_cast(widget->maximum()) * 0.5f; - QLabel* label = findChild(QStringLiteral("AnalogSensitivityLabel")); - if (label) - { - connect(widget, &QSlider::valueChanged, this, [range, label](int value) { - label->setText(tr("%1%").arg((static_cast(value) / range) * 100.0f, 0, 'f', 0)); - }); - } - - ControllerSettingWidgetBinder::BindWidgetToInputProfileNormalized(sif, widget, config_section, "AnalogSensitivity", - range, Controller::DEFAULT_STICK_SENSITIVITY); - } } //////////////////////////////////////////////////////////////////////////