]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Polished clientReplyContext::purgeAllCached.
authorrousskov <>
Sun, 17 Feb 2008 00:42:27 +0000 (00:42 +0000)
committerrousskov <>
Sun, 17 Feb 2008 00:42:27 +0000 (00:42 +0000)
src/client_side_reply.cc

index d7d495ebf6b6a5fb1635d49f5461d82cae1d4b0b..38408bbbe56de292683c70ab1d70e9e3b842d377 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side_reply.cc,v 1.153 2008/02/12 23:07:52 rousskov Exp $
+ * $Id: client_side_reply.cc,v 1.154 2008/02/16 17:42:27 rousskov Exp $
  *
  * DEBUG: section 88    Client-side Reply Routines
  * AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
@@ -764,18 +764,16 @@ void
 clientReplyContext::purgeAllCached()
 {
        const char *url = urlCanonical(http->request);
-       
-       HttpRequestMethod m(METHOD_NONE);
-       for (; m!=METHOD_ENUM_END; ++m) {
+
+       for (HttpRequestMethod m(METHOD_NONE); m != METHOD_ENUM_END; ++m) {
            if (m.isCacheble()) {
                if (StoreEntry *entry = storeGetPublic(url, m)) {
                    debugs(88, 5, "purging " << RequestMethodStr(m) << ' ' << url);
                    entry->release();
                }
-           } // end if(isCacheble())
-       } // end for
-       
-} // purgeAllCached
+           }
+       }
+}
 
 void
 clientReplyContext::created(StoreEntry *newEntry)