diff --git a/include/ss/parser.hpp b/include/ss/parser.hpp index ec470d2..2629403 100644 --- a/include/ss/parser.hpp +++ b/include/ss/parser.hpp @@ -752,12 +752,6 @@ private: ssize_t get_line_buffer(char** lineptr, size_t* n, const char* const csv_data_buffer, size_t csv_data_size, size_t& curr_char) { - if (lineptr == nullptr || n == nullptr || - csv_data_buffer == nullptr) { - errno = EINVAL; - return -1; - } - if (curr_char >= csv_data_size) { return -1; } diff --git a/ssp.hpp b/ssp.hpp index 7054d36..5fa3db0 100644 --- a/ssp.hpp +++ b/ssp.hpp @@ -2882,12 +2882,6 @@ private: ssize_t get_line_buffer(char** lineptr, size_t* n, const char* const csv_data_buffer, size_t csv_data_size, size_t& curr_char) { - if (lineptr == nullptr || n == nullptr || - csv_data_buffer == nullptr) { - errno = EINVAL; - return -1; - } - if (curr_char >= csv_data_size) { return -1; }