From 91a01ae1e2be1034d04a0b103b5b81d5bb60fa0b Mon Sep 17 00:00:00 2001
From: Alexei Kotov <alexdobrohotov@yandex.ru>
Date: Sat, 30 Dec 2023 03:23:27 +0300
Subject: [PATCH] Remove duplicate ToggleWeapon trigger handler registration

---
 files/data/scripts/omw/playercontrols.lua | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/files/data/scripts/omw/playercontrols.lua b/files/data/scripts/omw/playercontrols.lua
index d3f9ecea5f..f14724f0a2 100644
--- a/files/data/scripts/omw/playercontrols.lua
+++ b/files/data/scripts/omw/playercontrols.lua
@@ -208,16 +208,6 @@ end
 
 local uiControlsOverridden = false
 
-input.registerTriggerHandler('ToggleWeapon', async:callback(function()
-    if not combatAllowed() then return end
-    if Actor.stance(self) == Actor.STANCE.Weapon then
-        Actor.setStance(self, Actor.STANCE.Nothing)
-    elseif Player.getControlSwitch(self, Player.CONTROL_SWITCH.Fighting) then
-        Actor.setStance(self, Actor.STANCE.Weapon)
-    end
-end))
-
-
 local function uiAllowed()
     return Player.getControlSwitch(self, Player.CONTROL_SWITCH.Controls) and not uiControlsOverridden
 end