From 5d8e422d82253ff60966274e533aadb16ada2e2b Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 2 Oct 2015 10:33:29 -0400 Subject: [PATCH] WiimoteEmu: Get rid of an unused clamp function --- Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.h b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.h index a62d2919cd..82185adfc6 100644 --- a/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.h +++ b/Source/Core/Core/HW/WiimoteEmu/WiimoteEmu.h @@ -80,13 +80,6 @@ void EmulateSwing(AccelData* const accel , ControllerEmu::Force* const tilt_group , const bool sideways = false, const bool upright = false); -inline double trim(double a) -{ - if (a<=0) return 0; - if (a>=255) return 255; - return a; -} - enum { ACCEL_ZERO_G = 0x80,