# HG changeset patch # User Chris Cannam # Date 1553685966 0 # Node ID f9b6e99e0520fb3ef0157e94743f4b86b288d1e1 # Parent a77a7e8c085c5bcb568da975b010a174ac2080d4 Remove COMPLETION_UNKNOWN, which is never used (and never handled) diff -r a77a7e8c085c -r f9b6e99e0520 data/model/Model.cpp --- a/data/model/Model.cpp Fri Mar 22 17:49:10 2019 +0000 +++ b/data/model/Model.cpp Wed Mar 27 11:26:06 2019 +0000 @@ -20,8 +20,6 @@ #include -const int Model::COMPLETION_UNKNOWN = -1; - Model::~Model() { // SVDEBUG << "Model::~Model(" << this << ")" << endl; diff -r a77a7e8c085c -r f9b6e99e0520 data/model/Model.h --- a/data/model/Model.h Fri Mar 22 17:49:10 2019 +0000 +++ b/data/model/Model.h Wed Mar 27 11:26:06 2019 +0000 @@ -140,16 +140,15 @@ * If "completion" is non-NULL, this function should return * through it an estimated percentage value showing how far * through the background operation it thinks it is (for progress - * reporting). If it has no way to calculate progress, it may - * return the special value COMPLETION_UNKNOWN. See also - * getCompletion(). + * reporting). + * + * See also getCompletion(). */ virtual bool isReady(int *completion = 0) const { bool ok = isOK(); if (completion) *completion = (ok ? 100 : 0); return ok; } - static const int COMPLETION_UNKNOWN; /** * If this model imposes a zoom constraint, i.e. some limit to the