From ff7bbfe5243cbca494d79133f260cc6b5c1d4ca7 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sun, 18 Dec 2005 07:11:51 +0000 Subject: [PATCH] remove ShiftRows --- stepmania/src/NoteDataUtil.cpp | 9 --------- stepmania/src/NoteDataUtil.h | 3 --- 2 files changed, 12 deletions(-) diff --git a/stepmania/src/NoteDataUtil.cpp b/stepmania/src/NoteDataUtil.cpp index 7027857132..3b5473c250 100644 --- a/stepmania/src/NoteDataUtil.cpp +++ b/stepmania/src/NoteDataUtil.cpp @@ -1894,15 +1894,6 @@ void NoteDataUtil::ScaleRegion( NoteData &nd, float fScale, int iStartIndex, int nd.CopyAll( temp1 ); } -// deprecated -void NoteDataUtil::ShiftRows( NoteData &nd, int iStartIndex, int iRowsToShift ) -{ - if( iRowsToShift > 0 ) - InsertRows( nd, iStartIndex, iRowsToShift ); - else - DeleteRows( nd, iStartIndex, -iRowsToShift ); -} - void NoteDataUtil::InsertRows( NoteData &nd, int iStartIndex, int iRowsToAdd ) { ASSERT( iRowsToAdd >= 0 ); diff --git a/stepmania/src/NoteDataUtil.h b/stepmania/src/NoteDataUtil.h index 30a66254f1..95bd3bb3a4 100644 --- a/stepmania/src/NoteDataUtil.h +++ b/stepmania/src/NoteDataUtil.h @@ -103,9 +103,6 @@ namespace NoteDataUtil void InsertRows( NoteData &nd, int iStartIndex, int iRowsToShift ); void DeleteRows( NoteData &nd, int iStartIndex, int iRowsToShift ); - // If iRowsToShift > 0, add blank rows. If iRowsToShift < 0, delete rows - void ShiftRows( NoteData &nd, int iStartIndex, int iRowsToShift ); - void RemoveAllTapsOfType( NoteData& ndInOut, TapNote::Type typeToRemove ); void RemoveAllTapsExceptForType( NoteData& ndInOut, TapNote::Type typeToKeep );