From: Alex Rousskov Date: Sun, 18 May 2025 07:58:53 +0000 (+0000) Subject: Remove always-zero CacheDigestGuessStats::closeHits (#2062) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=19127eee52f6f839b71e814c01731cbfd8669299;p=thirdparty%2Fsquid.git Remove always-zero CacheDigestGuessStats::closeHits (#2062) The data member stopped being updated in 1998 commit 69c95dd3. It was scheduled for removal since inception in 1998 commit 04f0c415. --- diff --git a/src/CacheDigest.cc b/src/CacheDigest.cc index 89967b4cbb..1f1751eb1b 100644 --- a/src/CacheDigest.cc +++ b/src/CacheDigest.cc @@ -237,8 +237,6 @@ cacheDigestGuessStatsReport(const CacheDigestGuessStats * stats, StoreEntry * se hit_count, xpercent(hit_count, tot_count), miss_count, xpercent(miss_count, tot_count), tot_count, xpercent(tot_count, tot_count)); - storeAppendPrintf(sentry, "\tclose_hits: %d ( %d%%) /* cd said hit, doc was in the peer cache, but we got a miss */\n", - stats->closeHits, xpercentInt(stats->closeHits, stats->falseHits)); } void diff --git a/src/StatCounters.h b/src/StatCounters.h index e78d9d90eb..4a4484eca7 100644 --- a/src/StatCounters.h +++ b/src/StatCounters.h @@ -22,7 +22,6 @@ public: int falseHits = 0; int trueMisses = 0; int falseMisses = 0; - int closeHits = 0; // TODO: temporary. remove it later }; #endif