From 17cfbda874cbd6f0ffebf0b6ac820a9edf2497f5 Mon Sep 17 00:00:00 2001 From: Andrew Livy Date: Wed, 15 Jan 2003 21:40:12 +0000 Subject: [PATCH] removed some unused, untested and generally dangerous scrolling list code. --- stepmania/src/ScrollingList.cpp | 33 --------------------------------- stepmania/src/ScrollingList.h | 2 +- 2 files changed, 1 insertion(+), 34 deletions(-) diff --git a/stepmania/src/ScrollingList.cpp b/stepmania/src/ScrollingList.cpp index 9f4c6299c6..0e77718a66 100644 --- a/stepmania/src/ScrollingList.cpp +++ b/stepmania/src/ScrollingList.cpp @@ -280,39 +280,6 @@ void ScrollingList::Replace(CString sGraphicPath, int ElementNumber) } } -void ScrollingList::AddElementAt(int loc, CString sGraphicPath) -{ - if(m_iSpriteType == SPRITE_TYPE_SPRITE) - { - Sprite* pNewSprite = new Sprite; - pNewSprite->Load( sGraphicPath ); -// m_apSprites.push_back( pNewSprite ); - m_apSprites.insert(m_apSprites.begin()+loc, pNewSprite); - } - else - { - CroppedSprite* pNewCSprite = new CroppedSprite; - if(m_iBannerPrefs == BANNERPREFS_DDRFLAT) - { - pNewCSprite->SetCroppedSize( BANNER_WIDTH, BANNER_HEIGHT ); - } - else if(m_iBannerPrefs == BANNERPREFS_DDRROT) - { - pNewCSprite->SetCroppedSize( BANNER_WIDTH, BANNER_HEIGHT ); - pNewCSprite->SetRotation( DDRROT_ROTATION ); - } - else if(m_iBannerPrefs == BANNERPREFS_EZ2) - { - pNewCSprite->SetCroppedSize( EZ2_BANNER_WIDTH*2, EZ2_BANNER_HEIGHT*2 ); - } - - pNewCSprite->Load( sGraphicPath ); - // m_apCSprites.push_back( pNewCSprite ); - m_apSprites.insert(m_apSprites.begin()+loc, pNewCSprite); - } - -} - /******************************** DrawPrimitives diff --git a/stepmania/src/ScrollingList.h b/stepmania/src/ScrollingList.h index 877fa4f4e8..b8290fa2fb 100644 --- a/stepmania/src/ScrollingList.h +++ b/stepmania/src/ScrollingList.h @@ -29,7 +29,7 @@ public: virtual void DrawPrimitives(); void Replace(CString sGraphicPath, int ElementNumber); - void AddElementAt(int loc, CString sGraphicPath); + void SetSelection( int iIndex ); int GetSelection(); void SetNumberVisible( int iNumVisibleElements );