Skip to content

Commit 9501616

Browse files
committed
syntax: remove WordBoundary::is_negated method
This is apparently not used anywhere. So drop it. Also motivated by wanting to squash look-around assertions into a single enum. So 'is_negated' won't make sense on its own anymore.
1 parent f48d417 commit 9501616

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

regex-syntax/src/hir/mod.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,16 +1353,6 @@ pub enum WordBoundary {
13531353
AsciiNegate,
13541354
}
13551355

1356-
impl WordBoundary {
1357-
/// Returns true if and only if this word boundary assertion is negated.
1358-
pub fn is_negated(&self) -> bool {
1359-
match *self {
1360-
WordBoundary::Unicode | WordBoundary::Ascii => false,
1361-
WordBoundary::UnicodeNegate | WordBoundary::AsciiNegate => true,
1362-
}
1363-
}
1364-
}
1365-
13661356
/// The high-level intermediate representation for a group.
13671357
///
13681358
/// This represents one of three possible group types:

0 commit comments

Comments
 (0)