Skip to content

Commit

Permalink
Reverted change without an effect and cleaned up unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
enetz committed Dec 8, 2023
1 parent 6d3bda4 commit 79c67b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/openms/include/OpenMS/CONCEPT/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,6 @@ namespace OpenMS
*/
inline const double CAL_PER_JOULE = (1 / 4.184);

/** Character that indicates a comment line in a CSV file. (Required for CsvFile)
String
*/
inline const std::string COMMENT_CHAR = "#";

namespace UserParam
{
/** User parameter name for identifier of concatenated peptides
Expand Down
3 changes: 1 addition & 2 deletions src/openms/source/FORMAT/CsvFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
// --------------------------------------------------------------------------

#include <OpenMS/FORMAT/CsvFile.h>
#include <OpenMS/CONCEPT/Constants.h>

using namespace std;

Expand Down Expand Up @@ -63,7 +62,7 @@ namespace OpenMS
bool CsvFile::getRow(Size row, StringList& list)
{
// it is assumed that the value to be cast won't be so large to overflow an ulong int
if (static_cast<int>(row) > static_cast<int>(CsvFile::rowCount()) - 1)
if (static_cast<int>(row) > static_cast<int>(TextFile::buffer_.size()) - 1)
{
throw Exception::InvalidIterator(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION);
}
Expand Down

0 comments on commit 79c67b8

Please sign in to comment.