db/update/Service: eliminate attribute "progress"

Use walk!=nullptr instead.
This commit is contained in:
Max Kellermann
2016-03-05 19:40:11 +01:00
parent b24a5e0662
commit 3146bf51e6
2 changed files with 1 additions and 15 deletions

View File

@@ -35,19 +35,11 @@ class CompositeStorage;
* This class manages the update queue and runs the update thread.
*/
class UpdateService final : DeferredMonitor {
enum Progress {
UPDATE_PROGRESS_IDLE = 0,
UPDATE_PROGRESS_RUNNING = 1,
UPDATE_PROGRESS_DONE = 2
};
SimpleDatabase &db;
CompositeStorage &storage;
DatabaseListener &listener;
Progress progress;
bool modified;
Thread update_thread;