@@ -39,7 +39,6 @@ AutoScreenMessage(SM_RefreshWheelLocation);
39
39
AutoScreenMessage (SM_SongChanged);
40
40
AutoScreenMessage (SM_UsersUpdate);
41
41
AutoScreenMessage (SM_BackFromPlayerOptions);
42
- AutoScreenMessage (SM_ConfirmDeleteSong);
43
42
AutoScreenMessage (ETTP_SelectChart);
44
43
AutoScreenMessage (ETTP_StartChart);
45
44
AutoScreenMessage (ETTP_Disconnect);
@@ -206,41 +205,12 @@ ScreenNetSelectMusic::HandleScreenMessage(const ScreenMessage SM)
206
205
SelectSongUsingNSMAN (this , true );
207
206
} else if (SM == ETTP_SelectChart) {
208
207
SelectSongUsingNSMAN (this , false );
209
- } else if (SM == SM_ConfirmDeleteSong) {
210
- if (ScreenPrompt::s_LastAnswer == ANSWER_YES) {
211
- OnConfirmSongDeletion ();
212
- } else {
213
- // need to resume the song preview that was automatically paused
214
- m_MusicWheel.ChangeMusic (0 );
215
- }
216
208
}
217
209
218
210
// Must be at end, as so it is last resort for SMOnline packets.
219
211
// If it doesn't know what to do, then it'll just remove them.
220
212
ScreenSelectMusic::HandleScreenMessage (SM);
221
213
}
222
-
223
- void
224
- ScreenNetSelectMusic::OnConfirmSongDeletion ()
225
- {
226
- Song* deletedSong = m_pSongAwaitingDeletionConfirmation;
227
- if (!deletedSong) {
228
- LOG->Warn (" Attempted to delete a null song "
229
- " (ScreenSelectMusic::OnConfirmSongDeletion)" );
230
- return ;
231
- }
232
-
233
- RString deleteDir = deletedSong->GetSongDir ();
234
- // flush the deleted song from any caches
235
- SONGMAN->UnlistSong (deletedSong);
236
- // refresh the song list
237
- m_MusicWheel.ReloadSongList (false , " " );
238
- LOG->Trace (" Deleting song: '%s'\n " , deleteDir.c_str ());
239
- // delete the song directory from disk
240
- FILEMAN->DeleteRecursive (deleteDir);
241
- m_pSongAwaitingDeletionConfirmation = NULL ;
242
- }
243
-
244
214
ScreenNetSelectMusic::~ScreenNetSelectMusic ()
245
215
{
246
216
if (PREFSMAN->m_verbose_log > 1 )
0 commit comments