[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/11] dfa: remove useless check
From: |
Paolo Bonzini |
Subject: |
[PATCH 06/11] dfa: remove useless check |
Date: |
Wed, 4 Jan 2012 11:59:47 +0100 |
* src/dfa.c (state_index): There is nothing that is a newline *and*
a letter. Remove redundant call to SUCCEEDS_IN_CONTEXT.
---
src/dfa.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/dfa.c b/src/dfa.c
index 002db2f..d3e110c 100644
--- a/src/dfa.c
+++ b/src/dfa.c
@@ -2019,8 +2019,7 @@ state_index (struct dfa *d, position_set const *s, int
context)
constraint = s->elems[j].constraint;
if (SUCCEEDS_IN_CONTEXT(constraint, context, CTX_NONE)
|| SUCCEEDS_IN_CONTEXT(constraint, context, CTX_NEWLINE)
- || SUCCEEDS_IN_CONTEXT(constraint, context, CTX_LETTER)
- || SUCCEEDS_IN_CONTEXT(constraint, context, CTX_NEWLINE |
CTX_LETTER))
+ || SUCCEEDS_IN_CONTEXT(constraint, context, CTX_LETTER))
d->states[i].constraint |= constraint;
if (! d->states[i].first_end)
d->states[i].first_end = d->tokens[s->elems[j].index];
--
1.7.7.1
- [RFC/RFT PATCH 00/11] Differentiate ^/$ from \` and \' in grep -z mode, Paolo Bonzini, 2012/01/04
- [PATCH 01/11] dfa: fix corner case with anchors, Paolo Bonzini, 2012/01/04
- [PATCH 02/11] dfa: introduce contexts for the values in d->success, Paolo Bonzini, 2012/01/04
- [PATCH 04/11] dfa: refactor common context computations, Paolo Bonzini, 2012/01/04
- [PATCH 03/11] dfa: change newline/letter to a single context value, Paolo Bonzini, 2012/01/04
- [PATCH 05/11] dfa: change meaning of a state context, Paolo Bonzini, 2012/01/04
- [PATCH 06/11] dfa: remove useless check,
Paolo Bonzini <=
- [PATCH 07/11] dfa: make repetitive code *really* repetitive, Paolo Bonzini, 2012/01/04
- [PATCH 08/11] dfa: remove redundant line constraints, Paolo Bonzini, 2012/01/04
- [PATCH 11/11] dfa: introduce BEGBUF/ENDBUF, Paolo Bonzini, 2012/01/04
- [PATCH 09/11] dfa: rename "newline" to "buffer delimiter", Paolo Bonzini, 2012/01/04
- [PATCH 10/11] dfa: introduce bufdelim context, Paolo Bonzini, 2012/01/04
- Re: [RFC/RFT PATCH 00/11] Differentiate ^/$ from \` and \' in grep -z mode, Jim Meyering, 2012/01/04