]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove unused function stats_get_pending
authorErik Johansson <erik@ejohansson.se>
Sun, 23 Feb 2020 20:53:03 +0000 (21:53 +0100)
committerErik Johansson <erik@ejohansson.se>
Sun, 23 Feb 2020 21:07:08 +0000 (22:07 +0100)
src/stats.cpp
src/stats.hpp

index b25cf12d138a1d28975db682cd447e7e23698f11..df093d708ec440ce1fecfb28c15c464f11dbc642 100644 (file)
@@ -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)
index ef89fef0dbdcda74a64c688024c08f546296fd33..c470285963fb67d0a0f45d24f9800eecd3e52955 100644 (file)
@@ -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);