remove useless code

This commit is contained in:
taiyang-li 2021-11-29 11:37:07 +08:00
parent e67407b5c5
commit 919b439b7c

View File

@ -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 <typename T>
inline std::enable_if_t<is_arithmetic_v<T>, void>
readCSV(T & x, ReadBuffer & buf, bool read_bool_as_uint8 = false) { readCSVSimple(x, buf, read_bool_as_uint8); }