Remove unused potentially dangerous function

This commit is contained in:
Alexey Milovidov 2020-07-06 05:11:33 +03:00
parent 935b943703
commit 71b410eb10
2 changed files with 1 additions and 18 deletions

View File

@ -7,21 +7,6 @@
namespace DB 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) ASTPtr makeASTForLogicalAnd(ASTs && arguments)
{ {
@ -100,4 +85,5 @@ bool tryGetLiteralBool(const IAST * ast, bool & value)
return false; return false;
} }
} }
} }

View File

@ -5,9 +5,6 @@
namespace DB namespace DB
{ {
/// Makes an AST calculating NOT argument.
ASTPtr makeASTForLogicalNot(ASTPtr argument);
/// Makes an AST calculating argument1 AND argument2 AND ... AND argumentN. /// Makes an AST calculating argument1 AND argument2 AND ... AND argumentN.
ASTPtr makeASTForLogicalAnd(ASTs && arguments); ASTPtr makeASTForLogicalAnd(ASTs && arguments);