Revert "Merge pull request #1888 from mwkroening/notes_loader-invalid_argument"
This reverts commit 56caf6da4b.
This commit is contained in:
committed by
Crystal Squirrel
parent
95aae05243
commit
6bd6963406
@@ -11,17 +11,6 @@
|
||||
#include "TimingData.h"
|
||||
#include <utility>
|
||||
|
||||
bool NoteDataUtil::StringInterpretsAs( const std::string& str, int integer ) {
|
||||
try
|
||||
{
|
||||
return std::stoi( str ) == integer;
|
||||
}
|
||||
catch ( const std::invalid_argument & )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: Remove these constants that aren't time signature-aware
|
||||
static const int BEATS_PER_MEASURE = 4;
|
||||
static const int ROWS_PER_MEASURE = ROWS_PER_BEAT * BEATS_PER_MEASURE;
|
||||
|
||||
Reference in New Issue
Block a user