]> granicus.if.org Git - apache/commitdiff
ctx->bytes_in is never used. Remove a useless iteration through the brigade
authorStefan Fritsch <sf@apache.org>
Sun, 22 Jan 2012 18:50:21 +0000 (18:50 +0000)
committerStefan Fritsch <sf@apache.org>
Sun, 22 Jan 2012 18:50:21 +0000 (18:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1234574 13f79535-47bb-0310-9956-ffa450edef68

server/core_filters.c

index b10de2c26c8107b260f18e743c2f3e837c04f569..73828af5e991f0d56f2af41de7c9c9734ee637f5 100644 (file)
@@ -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)) {