From ca09f6dd67f1b458af3bea9cd268657b52dbf5bf Mon Sep 17 00:00:00 2001 From: AJ Kelly Date: Sat, 24 Mar 2012 00:16:21 -0500 Subject: [PATCH] more script cleanup --- Themes/_fallback/Scripts/02 Utilities.lua | 1 - Themes/_fallback/Scripts/03 Gameplay.lua | 7 +------ Themes/_fallback/Scripts/04 KeymapGuard.lua | 1 - 3 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 Themes/_fallback/Scripts/04 KeymapGuard.lua diff --git a/Themes/_fallback/Scripts/02 Utilities.lua b/Themes/_fallback/Scripts/02 Utilities.lua index 0a1fb2d014..4b9497c862 100644 --- a/Themes/_fallback/Scripts/02 Utilities.lua +++ b/Themes/_fallback/Scripts/02 Utilities.lua @@ -334,7 +334,6 @@ function WideScale(AR4_3, AR16_9) return scale( SCREEN_WIDTH, 640, 854, AR4_3, AR16_9 ) end - local function round(num, idp) if idp and idp > 0 then local mult = 10 ^ idp; diff --git a/Themes/_fallback/Scripts/03 Gameplay.lua b/Themes/_fallback/Scripts/03 Gameplay.lua index 8c6c34feac..7433a84107 100644 --- a/Themes/_fallback/Scripts/03 Gameplay.lua +++ b/Themes/_fallback/Scripts/03 Gameplay.lua @@ -8,12 +8,7 @@ local function CurGameName() end -- Check the active game mode against a string. Cut down typing this in metrics. -function IsGame(str) - if CurGameName() == str then - return true - end - return false -end +function IsGame(str) return CurGameName() == str end -- GetExtraColorThreshold() -- [en] returns the difficulty threshold in meter diff --git a/Themes/_fallback/Scripts/04 KeymapGuard.lua b/Themes/_fallback/Scripts/04 KeymapGuard.lua deleted file mode 100644 index bf8994e0ca..0000000000 --- a/Themes/_fallback/Scripts/04 KeymapGuard.lua +++ /dev/null @@ -1 +0,0 @@ ---does not work \ No newline at end of file