about summary refs log tree commit diff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-08-28T12·30+0200
committerEelco Dolstra <edolstra@gmail.com>2017-08-28T12·30+0200
commite681b1f064f88b46cd75d374937bd07e5d6e95d1 (patch)
tree2306fd0cec9a10bb9a5e14e0731558833dbc6cb1 /src/libutil
parent8fff3e7bb50377e48fb9c672e6551abae0fdf03d (diff)
Simplify
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/logging.hh5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libutil/logging.hh b/src/libutil/logging.hh
index 4b1f3b5f70cf..2ec15cb68d25 100644
--- a/src/libutil/logging.hh
+++ b/src/libutil/logging.hh
@@ -33,6 +33,7 @@ typedef enum {
     resCorruptedPath = 103,
     resSetPhase = 104,
     resProgress = 105,
+    resSetExpected = 106,
 } ResultType;
 
 typedef uint64_t ActivityId;
@@ -72,8 +73,6 @@ public:
 
     virtual void stopActivity(ActivityId act) { };
 
-    virtual void setExpected(ActivityId act, ActivityType type, uint64_t expected) { };
-
     virtual void result(ActivityId act, ResultType type, const Fields & fields) { };
 };
 
@@ -97,7 +96,7 @@ struct Activity
     { result(resProgress, done, expected, running, failed); }
 
     void setExpected(ActivityType type2, uint64_t expected) const
-    { logger.setExpected(id, type2, expected); }
+    { result(resSetExpected, type2, expected); }
 
     template<typename... Args>
     void result(ResultType type, const Args & ... args) const