changeset 1669:f9b6e99e0520 single-point

Remove COMPLETION_UNKNOWN, which is never used (and never handled)
author Chris Cannam
date Wed, 27 Mar 2019 11:26:06 +0000
parents a77a7e8c085c
children 623231712470
files data/model/Model.cpp data/model/Model.h
diffstat 2 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 <iostream>
 
-const int Model::COMPLETION_UNKNOWN = -1;
-
 Model::~Model()
 {
 //    SVDEBUG << "Model::~Model(" << this << ")" << endl;
--- 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