From c2d5ca167f8e88b0457acb155bfea8d75be8da70 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 26 May 2004 02:46:35 +0000 Subject: [PATCH] simplify --- stepmania/src/Course.cpp | 10 ++-------- stepmania/src/Course.h | 1 - 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/stepmania/src/Course.cpp b/stepmania/src/Course.cpp index 2cd7c36b8c..973c7efdd5 100644 --- a/stepmania/src/Course.cpp +++ b/stepmania/src/Course.cpp @@ -656,8 +656,8 @@ void Course::GetTrailUnsorted( StepsType st, CourseDifficulty cd, Trail &trail ) /* This applies difficult mode for meter ranges. (If it's a difficulty * class, we'll do it below.) */ - int low_meter, high_meter; - GetMeterRange( i, low_meter, high_meter, entry_difficulty ); + int low_meter = m_entries[i].low_meter; + int high_meter = m_entries[i].high_meter; switch( e.type ) { @@ -901,12 +901,6 @@ bool Course::IsFixed() const return true; } -void Course::GetMeterRange( int stage, int& iMeterLowOut, int& iMeterHighOut, CourseDifficulty cd ) const -{ - iMeterLowOut = m_entries[stage].low_meter; - iMeterHighOut = m_entries[stage].high_meter; -} - bool Course::GetTotalSeconds( StepsType st, float& fSecondsOut ) const { diff --git a/stepmania/src/Course.h b/stepmania/src/Course.h index bbd542b277..b4cf2701cd 100644 --- a/stepmania/src/Course.h +++ b/stepmania/src/Course.h @@ -141,7 +141,6 @@ public: private: void GetTrailUnsorted( StepsType st, CourseDifficulty cd, Trail &trail ) const; - void GetMeterRange( int stage, int& iMeterLowOut, int& iMeterHighOut, CourseDifficulty cd ) const; typedef pair TrailParams; typedef map TrailCache;