diff data/model/Model.cpp @ 1731:601851995f4b by-id

Introduce Model to ById
author Chris Cannam
date Fri, 21 Jun 2019 13:37:00 +0100
parents 187c76c40c6f
children d91ff235e69d
line wrap: on
line diff
--- a/data/model/Model.cpp	Thu Jun 20 14:57:39 2019 +0100
+++ b/data/model/Model.cpp	Fri Jun 21 13:37:00 2019 +0100
@@ -40,20 +40,6 @@
     }
 }
 
-int
-Model::getNextId()
-{
-    static int nextId = 0;
-    static QMutex mutex;
-    QMutexLocker locker(&mutex);
-    int i = nextId;
-    if (nextId == INT_MAX) {
-        nextId = INT_MIN;
-    }
-    ++nextId;
-    return i;
-}
-
 void
 Model::setSourceModel(Model *model)
 {