From: Stefan Fritsch Date: Sun, 22 Jan 2012 18:50:21 +0000 (+0000) Subject: ctx->bytes_in is never used. Remove a useless iteration through the brigade X-Git-Tag: 2.5.0-alpha~7554 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=95bfe997d6cfc56850d5ccca71e105eac059a843;p=apache ctx->bytes_in is never used. Remove a useless iteration through the brigade git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1234574 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/core_filters.c b/server/core_filters.c index b10de2c26c..73828af5e9 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -398,14 +398,8 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb) ctx->buffered_bb = apr_brigade_create(c->pool, c->bucket_alloc); } - if (new_bb != NULL) { - for (bucket = APR_BRIGADE_FIRST(new_bb); bucket != APR_BRIGADE_SENTINEL(new_bb); bucket = APR_BUCKET_NEXT(bucket)) { - if (bucket->length > 0) { - ctx->bytes_in += bucket->length; - } - } + if (new_bb != NULL) bb = new_bb; - } if ((ctx->buffered_bb != NULL) && !APR_BRIGADE_EMPTY(ctx->buffered_bb)) {