Mercurial > hg > svapp
diff framework/Document.cpp @ 693:3c5dc95bea91 by-id
Tidy
author | Chris Cannam |
---|---|
date | Wed, 17 Jul 2019 13:28:37 +0100 |
parents | ad5917362158 |
children | bd6e2fc53377 |
line wrap: on
line diff
--- a/framework/Document.cpp Wed Jul 17 11:20:24 2019 +0100 +++ b/framework/Document.cpp Wed Jul 17 13:28:37 2019 +0100 @@ -291,18 +291,6 @@ delete this; } - void cancel() { -/*!!! todo: restore - foreach (Layer *layer, m_primary) { - ModelId model = layer->getModel(); - //!!! todo: restore this behaviour - if (model) { - model->abandon(); - } - } -*/ - } - private: Document *m_doc; vector<Layer *> m_primary; @@ -345,13 +333,6 @@ return amc; } -void -Document::cancelAsyncLayerCreation(Document::LayerCreationAsyncHandle h) -{ - AdditionalModelConverter *conv = static_cast<AdditionalModelConverter *>(h); - conv->cancel(); -} - vector<Layer *> Document::createLayersForDerivedModels(vector<ModelId> newModels, QStringList names) @@ -1067,7 +1048,6 @@ return models; } -//!!! what is this used for? bool Document::isKnownModel(const ModelId modelId) const { @@ -1562,10 +1542,6 @@ // 'type="transform"' in the derivation element. const Transform &transform = rec.transform; - - //!!! in cases like these, where we think we have the model handle - //!!! and nobody else should be releasing it, we probably ought to - //!!! throw std::logic_error if !targetModel auto targetModel = ModelById::get(targetModelId); if (!targetModel) return;