From ac61a000e2bac51b21093e3c19136aa08a438292 Mon Sep 17 00:00:00 2001 From: Erik Johansson Date: Sun, 23 Feb 2020 21:53:03 +0100 Subject: Remove unused function stats_get_pending --- src/stats.cpp | 8 -------- src/stats.hpp | 1 - 2 files changed, 9 deletions(-) diff --git a/src/stats.cpp b/src/stats.cpp index b25cf12d..df093d70 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 ef89fef0..c4702859 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); -- cgit v1.2.3