Revert "Merge pull request #1888 from mwkroening/notes_loader-invalid_argument"

This reverts commit 56caf6da4b.
This commit is contained in:
quietly-turning
2020-06-16 15:00:17 -04:00
committed by Crystal Squirrel
parent 95aae05243
commit 6bd6963406
7 changed files with 12 additions and 25 deletions
-11
View File
@@ -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;