mirror of
https://github.com/cesanta/slre.git
synced 2024-11-24 03:15:30 +00:00
Removed unused variable
This commit is contained in:
parent
ea7e240a63
commit
1badac6c63
4
slre.c
4
slre.c
@ -345,9 +345,6 @@ static void setup_branch_points(struct regex_info *info) {
|
||||
static int foo(const char *re, int re_len, const char *s, int s_len,
|
||||
struct regex_info *info) {
|
||||
int i, step, depth = 0;
|
||||
const char *stack[ARRAY_SIZE(info->brackets)];
|
||||
|
||||
stack[0] = re;
|
||||
|
||||
/* First bracket captures everything */
|
||||
info->brackets[0].ptr = re;
|
||||
@ -382,7 +379,6 @@ static int foo(const char *re, int re_len, const char *s, int s_len,
|
||||
FAIL_IF(info->num_brackets >= ARRAY_SIZE(info->brackets),
|
||||
SLRE_TOO_MANY_BRACKETS);
|
||||
depth++; /* Order is important here. Depth increments first. */
|
||||
stack[depth] = &re[i];
|
||||
info->brackets[info->num_brackets].ptr = re + i + 1;
|
||||
info->brackets[info->num_brackets].len = -1;
|
||||
info->num_brackets++;
|
||||
|
Loading…
Reference in New Issue
Block a user