From 5ffe5f7157e306a3138851890a978d93351f8058 Mon Sep 17 00:00:00 2001 From: Kyzentun Date: Sun, 14 Sep 2014 21:07:34 -0600 Subject: [PATCH] Removed unused is_stage_final function from default. --- Themes/default/Scripts/04 Other.lua | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/Themes/default/Scripts/04 Other.lua b/Themes/default/Scripts/04 Other.lua index 64e8c16b45..9029c4306f 100644 --- a/Themes/default/Scripts/04 Other.lua +++ b/Themes/default/Scripts/04 Other.lua @@ -36,17 +36,6 @@ local numbered_stages= { Stage_Next= true, } -function is_stage_final() - -- The correct way to determine whether the player has reached Final Stage - -- is to check the number of stages left. - -- If you use the SongsPerPlay preference, you become incorrect after a - -- continue occurs. - local master_player= GAMESTATE:GetMasterPlayerNumber() - local stages_left= GAMESTATE:GetNumStagesLeft(master_player) - local stage_cost= GAMESTATE:GetCurrentSong():GetStageCost() - return (stages_left - stage_cost) < 1 -end - function thified_curstage_index(on_eval) local cur_stage= GAMESTATE:GetCurrentStage() local adjust= 1