Remove support for using &&/|| with patterns.

This was never documented and previously deprecated.
This commit is contained in:
Johanna Amann 2019-05-03 15:26:03 -07:00
parent 4c19e60488
commit ed644e39a0

View file

@ -1883,13 +1883,6 @@ BoolExpr::BoolExpr(BroExprTag arg_tag, Expr* arg_op1, Expr* arg_op2)
else else
SetType(base_type(TYPE_BOOL)); SetType(base_type(TYPE_BOOL));
} }
else if ( bt1 == TYPE_PATTERN && bt2 == bt1 )
{
reporter->Warning("&& and || operators deprecated for pattern operands");
SetType(base_type(TYPE_PATTERN));
}
else else
ExprError("requires boolean operands"); ExprError("requires boolean operands");
} }