diff --git a/GUI/View/List/InstrumentsQModel.cpp b/GUI/View/List/InstrumentsQModel.cpp index 0ff2c55d03bcabc61a5796a59611670af0c21ad7..6722c1cb01ec9c9ae673bbc1015301009c162f2c 100644 --- a/GUI/View/List/InstrumentsQModel.cpp +++ b/GUI/View/List/InstrumentsQModel.cpp @@ -43,17 +43,6 @@ QVariant InstrumentsQModel::data(const QModelIndex& index, int role) const return {}; } -InstrumentItem* InstrumentsQModel::instrumentItemForIndex(const QModelIndex& index) const -{ - if (!index.isValid()) - return nullptr; - - QVector<InstrumentItem*> set = gDoc->instruments()->instrumentItems(); - if (index.row() >= 0 && index.row() < set.size()) - return set[index.row()]; - return nullptr; -} - QModelIndex InstrumentsQModel::addNewGISASInstrument() { auto* t = new GISASInstrumentItem; diff --git a/GUI/View/List/InstrumentsQModel.h b/GUI/View/List/InstrumentsQModel.h index f54c4767ad52373146333f86b47e9546f7e1ee36..e9f0d4961fbb1c1a6bba36c427f49639b4477b25 100644 --- a/GUI/View/List/InstrumentsQModel.h +++ b/GUI/View/List/InstrumentsQModel.h @@ -29,8 +29,6 @@ public: int rowCount(const QModelIndex& parent = QModelIndex()) const override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; - InstrumentItem* instrumentItemForIndex(const QModelIndex& index) const; - QModelIndex addNewGISASInstrument(); QModelIndex addNewOffspecInstrument(); QModelIndex addNewSpecularInstrument();