From 744a92756200052837e25f4f7758175241528536 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 23 Sep 2021 13:42:23 -0700 Subject: Deprecated (!)-errors --- pattern.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'pattern.c') diff --git a/pattern.c b/pattern.c index 28a4ecf..50759d0 100644 --- a/pattern.c +++ b/pattern.c @@ -379,16 +379,6 @@ static pat_t *_bp_simplepattern(file_t *f, const char *str) } // Parentheses case '(': { - if (start + 2 < f->end && strncmp(start, "(!)", 3) == 0) { // (!) errors - str = start + 3; - pat_t *pat = bp_simplepattern(f, str); - if (!pat) pat = new_pat(f, str, str, 0, 0, BP_STRING); - pat = expand_replacements(f, pat, false); - pat_t *error = new_pat(f, start, pat->end, pat->min_matchlen, pat->max_matchlen, BP_ERROR); - error->args.pat = pat; - return error; - } - pat_t *pat = bp_pattern_nl(f, str, true); if (!pat) file_err(f, str, str, "There should be a valid pattern after this parenthesis."); -- cgit v1.2.3