diff base/ById.h @ 1744:b92bdcd4954b by-id

Update FFT model to ById
author Chris Cannam
date Tue, 02 Jul 2019 11:49:28 +0100
parents 52705a328b34
children 826e0cb77d8e
line wrap: on
line diff
--- a/base/ById.h	Mon Jul 01 14:16:12 2019 +0100
+++ b/base/ById.h	Tue Jul 02 11:49:28 2019 +0100
@@ -27,6 +27,8 @@
 
 #include "XmlExportable.h"
 
+//!!! todo: docs
+
 struct IdAlloc {
 
     // The value NO_ID (-1) is never allocated
@@ -153,7 +155,6 @@
 
     template <typename Derived>
     static std::shared_ptr<Derived> getAs(Id id) {
-        if (id.isNone()) return {}; // this id is never issued: avoid locking
         return AnyById::getAs<Derived>(id.untyped);
     }