From 0ebbee1174be4e07c10012c76cff2fb33f10af63 Mon Sep 17 00:00:00 2001 From: ado Date: Sun, 25 Feb 2024 12:10:46 +0100 Subject: [PATCH] [skip ci] Remove obsolete check from get_line_buffer --- include/ss/parser.hpp | 6 ------ ssp.hpp | 6 ------ 2 files changed, 12 deletions(-) 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; }