From 1845a8880ecfa5c43bb6bd57ed17aac1898f3c0c Mon Sep 17 00:00:00 2001 From: Joachim Wuttke <j.wuttke@fz-juelich.de> Date: Sun, 18 Feb 2024 09:20:14 +0100 Subject: [PATCH] rm unused --- GUI/View/List/InstrumentsQModel.cpp | 11 ----------- GUI/View/List/InstrumentsQModel.h | 2 -- 2 files changed, 13 deletions(-) diff --git a/GUI/View/List/InstrumentsQModel.cpp b/GUI/View/List/InstrumentsQModel.cpp index 0ff2c55d03b..6722c1cb01e 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 f54c4767ad5..e9f0d4961fb 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(); -- GitLab