From 918f76b263592bcd52704fec17ae84eb06d4d0c2 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 3 Feb 2009 17:47:14 -0400 Subject: Don't allow boolean operations to be applied to masks. --- src/value.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/value.cc b/src/value.cc index 13b90057..e9eaf5cb 100644 --- a/src/value.cc +++ b/src/value.cc @@ -1286,9 +1286,6 @@ void value_t::in_place_not() case STRING: set_boolean(as_string().empty()); return; - case MASK: - set_boolean(as_mask().empty()); - return; default: break; } @@ -1315,8 +1312,6 @@ bool value_t::is_realzero() const return as_balance_pair().is_realzero(); case STRING: return as_string().empty(); - case MASK: - return as_mask().empty(); case SEQUENCE: return as_sequence().empty(); @@ -1348,8 +1343,6 @@ bool value_t::is_zero() const return as_balance_pair().is_zero(); case STRING: return as_string().empty(); - case MASK: - return as_mask().empty(); case SEQUENCE: return as_sequence().empty(); -- cgit v1.2.3