From: Erik Johansson Date: Sun, 23 Feb 2020 20:53:03 +0000 (+0100) Subject: Remove unused function stats_get_pending X-Git-Tag: v4.0~586^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac61a000e2bac51b21093e3c19136aa08a438292;p=thirdparty%2Fccache.git Remove unused function stats_get_pending --- diff --git a/src/stats.cpp b/src/stats.cpp index b25cf12d1..df093d708 100644 --- a/src/stats.cpp +++ b/src/stats.cpp @@ -439,14 +439,6 @@ stats_update(Context& ctx, enum stats stat) ctx.counter_updates->data[stat]++; } -// Get the pending update of a counter value. -unsigned -stats_get_pending(Context& ctx, enum stats stat) -{ - init_counter_updates(ctx); - return ctx.counter_updates->data[stat]; -} - // Sum and display the total stats for all cache dirs. void stats_summary(const Config& config) diff --git a/src/stats.hpp b/src/stats.hpp index ef89fef0d..c47028596 100644 --- a/src/stats.hpp +++ b/src/stats.hpp @@ -66,7 +66,6 @@ enum stats { void stats_update(Context& ctx, enum stats stat); void stats_flush(void* context); -unsigned stats_get_pending(Context& ctx, enum stats stat); void stats_zero(const Config& config); void stats_summary(const Config& config); void stats_print(const Config& config);