Browse Source

optimizer: fix bb head, and remove unused code

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@332 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.0
Xuefer 15 years ago
parent
commit
df3dce2a4a
  1. 19
      optimizer.c

19
optimizer.c

@ -375,23 +375,6 @@ static int bbs_build_from(bbs_t *bbs, zend_op_array *op_array, int count) /* {{{
bbids[i] = BBID_INVALID;
}
/*
start = 0;
id = 0;
for (i = 1; i < count; i ++) {
if (markbbhead[i]) {
for (; start < i; start ++) {
bbids[start] = id;
}
id ++;
start = i;
}
}
for (; start < count; start ++) {
bbids[start] = id;
}
*/
id = -1;
for (i = 0; i < count; i ++) {
if (markbbhead[i]) {
@ -456,7 +439,7 @@ static int bbs_build_from(bbs_t *bbs, zend_op_array *op_array, int count) /* {{{
if (i >= count) {
break;
}
start = i - 1;
start = i;
id = bbids[i];
}
/* }}} */

Loading…
Cancel
Save