mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Remove unused potentially dangerous function
This commit is contained in:
parent
935b943703
commit
71b410eb10
@ -7,21 +7,6 @@
|
||||
|
||||
namespace DB
|
||||
{
|
||||
ASTPtr makeASTForLogicalNot(ASTPtr argument)
|
||||
{
|
||||
bool b;
|
||||
if (tryGetLiteralBool(argument.get(), b))
|
||||
return std::make_shared<ASTLiteral>(Field{UInt8(!b)});
|
||||
|
||||
auto function = std::make_shared<ASTFunction>();
|
||||
auto exp_list = std::make_shared<ASTExpressionList>();
|
||||
function->name = "not";
|
||||
function->arguments = exp_list;
|
||||
function->children.push_back(exp_list);
|
||||
exp_list->children.push_back(argument);
|
||||
return function;
|
||||
}
|
||||
|
||||
|
||||
ASTPtr makeASTForLogicalAnd(ASTs && arguments)
|
||||
{
|
||||
@ -100,4 +85,5 @@ bool tryGetLiteralBool(const IAST * ast, bool & value)
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -5,9 +5,6 @@
|
||||
|
||||
namespace DB
|
||||
{
|
||||
/// Makes an AST calculating NOT argument.
|
||||
ASTPtr makeASTForLogicalNot(ASTPtr argument);
|
||||
|
||||
/// Makes an AST calculating argument1 AND argument2 AND ... AND argumentN.
|
||||
ASTPtr makeASTForLogicalAnd(ASTs && arguments);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user