mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-14 10:22:10 +00:00
remove useless code
This commit is contained in:
parent
e67407b5c5
commit
919b439b7c
@ -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); }
|
||||
|
Loading…
Reference in New Issue
Block a user