瀏覽代碼

npad: Remove unused controller variable from OnInit()

This also gets rid of variable shadowing related to the lambda parameter
a little bit below this code as well.
Lioncash 7 年之前
父節點
當前提交
93596d03ec
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/core/hle/service/hid/controllers/npad.cpp

+ 3 - 2
src/core/hle/service/hid/controllers/npad.cpp

@@ -108,9 +108,10 @@ void Controller_NPad::OnInit() {
     styleset_changed_event =
         Kernel::Event::Create(kernel, Kernel::ResetType::OneShot, "npad:NpadStyleSetChanged");
 
-    if (!IsControllerActivated())
+    if (!IsControllerActivated()) {
         return;
-    std::size_t controller{};
+    }
+
     if (style.raw == 0) {
         // We want to support all controllers
         style.handheld.Assign(1);