From 9ae43db9453f5f408314ff9f0c7b570c9b81c1ad Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Wed, 20 Sep 2017 00:52:33 -0500 Subject: [PATCH] Remove unused parameters from method call --- DS4Windows/DS4Control/ControlService.cs | 5 ++--- DS4Windows/DS4Control/DS4LightBar.cs | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/DS4Windows/DS4Control/ControlService.cs b/DS4Windows/DS4Control/ControlService.cs index 0200dd4..e356f52 100644 --- a/DS4Windows/DS4Control/ControlService.cs +++ b/DS4Windows/DS4Control/ControlService.cs @@ -215,8 +215,7 @@ namespace DS4Windows DS4LightBar.forcelight[i] = false; DS4LightBar.forcedFlash[i] = 0; DS4LightBar.defaultLight = true; - DS4LightBar.updateLightBar(DS4Controllers[i], i, CurrentState[i], - ExposedState[i], touchPad[i]); + DS4LightBar.updateLightBar(DS4Controllers[i], i); tempDevice.IsRemoved = true; Thread.Sleep(50); } @@ -780,7 +779,7 @@ namespace DS4Windows Mapping.Commit(ind); // Update the GUI/whatever. - DS4LightBar.updateLightBar(device, ind, cState, ExposedState[ind], touchPad[ind]); + DS4LightBar.updateLightBar(device, ind); } } diff --git a/DS4Windows/DS4Control/DS4LightBar.cs b/DS4Windows/DS4Control/DS4LightBar.cs index c1f5f12..c4d36c2 100644 --- a/DS4Windows/DS4Control/DS4LightBar.cs +++ b/DS4Windows/DS4Control/DS4LightBar.cs @@ -38,8 +38,7 @@ namespace DS4Windows internal const int PULSE_CHARGING_DURATION = 4000; internal const double PULSE_CHARGING_SEGMENTS = PULSE_CHARGING_DURATION / 40; - public static void updateLightBar(DS4Device device, int deviceNum, DS4State cState, - DS4StateExposed eState, Mouse tp) + public static void updateLightBar(DS4Device device, int deviceNum) { DS4Color color; if (!defaultLight && !forcelight[deviceNum])