diff --git a/src/IO/ReadHelpers.h b/src/IO/ReadHelpers.h index a7c876ed32b..b580d80c244 100644 --- a/src/IO/ReadHelpers.h +++ b/src/IO/ReadHelpers.h @@ -1072,33 +1072,6 @@ inline void readCSVSimple(T & x, ReadBuffer & buf, bool read_bool_as_uint8 = fal assertChar(maybe_quote, buf); } -/* -inline void readCSVSimple(UInt8 & x, ReadBuffer & buf) -{ - if (buf.eof()) - throwReadAfterEOF(); - - char maybe_quote = *buf.position(); - - if (maybe_quote == '\'' || maybe_quote == '\"') - ++buf.position(); - - if (*buf.position() == 't' || *buf.position() == 'f') - { - bool tmp = false; - readBoolTextWord(tmp, buf); - x = tmp ? 1 : 0; - } - else - { - readText(x, buf); - } - - if (maybe_quote == '\'' || maybe_quote == '\"') - assertChar(maybe_quote, buf); -} -*/ - template inline std::enable_if_t, void> readCSV(T & x, ReadBuffer & buf, bool read_bool_as_uint8 = false) { readCSVSimple(x, buf, read_bool_as_uint8); }