From d55e9cbd9642214ef4bb175e4b119d2f07d4fc52 Mon Sep 17 00:00:00 2001 From: lightningterror Date: Sun, 30 Dec 2018 00:59:05 +0100 Subject: [PATCH] spu2-x: Remove unused GetLinearSrAr code. Get rid of GetLinearSrAr code, it wasn't used anywhere so I don't see a reason why to keep it, other than clogging up the code, if someone wants to work on it they can re add the function in the future. --- plugins/spu2-x/src/ADSR.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/spu2-x/src/ADSR.cpp b/plugins/spu2-x/src/ADSR.cpp index b771b39ba7..6052eadd48 100644 --- a/plugins/spu2-x/src/ADSR.cpp +++ b/plugins/spu2-x/src/ADSR.cpp @@ -37,18 +37,6 @@ void InitADSR() // INIT ADSR } } -// Returns the linear slide value for AR and SR inputs. -// (currently not used, it's buggy) -static int GetLinearSrAr(uint SrAr) -{ - // The Sr/Ar settings work in quarter steps, which means - // the bottom 2 bits go on the left side of the shift, and - // the right side of the shift gets divided by 4: - - const uint newSr = 0x7f - SrAr; - return ((1 | (newSr & 3)) << (newSr >> 2)); -} - bool V_ADSR::Calculate() { pxAssume(Phase != 0);