Skip to content

Commit d5d89d2

Browse files
committed
Remove needless if in songcacheindex
1 parent bda2ce2 commit d5d89d2

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/SongCacheIndex.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -367,16 +367,8 @@ bool SongCacheIndex::CacheSong(Song& song, string dir)
367367
insertSong.bind(index++);
368368
break;
369369
case DISPLAY_BPM_SPECIFIED:
370-
if (song.m_fSpecifiedBPMMin == song.m_fSpecifiedBPMMax)
371-
{
372-
insertSong.bind(index++, song.m_fSpecifiedBPMMin);
373-
insertSong.bind(index++, song.m_fSpecifiedBPMMin);
374-
}
375-
else
376-
{
377370
insertSong.bind(index++, song.m_fSpecifiedBPMMin);
378371
insertSong.bind(index++, song.m_fSpecifiedBPMMax);
379-
}
380372
break;
381373
case DISPLAY_BPM_RANDOM:
382374
//Write only one as null

0 commit comments

Comments
 (0)