From 1319b5b0d2ea06e8a954ebc18c1aa599052e9a5b Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Fri, 24 Feb 2023 10:51:55 +0100
Subject: [PATCH] merge fct into c'tor; rm fwd decl

---
 GUI/View/Instrument/OffspecDetectorEditor.cpp | 5 -----
 GUI/View/Instrument/OffspecDetectorEditor.h   | 3 ---
 2 files changed, 8 deletions(-)

diff --git a/GUI/View/Instrument/OffspecDetectorEditor.cpp b/GUI/View/Instrument/OffspecDetectorEditor.cpp
index fd7f1e4bb24..d7ea2a95d8b 100644
--- a/GUI/View/Instrument/OffspecDetectorEditor.cpp
+++ b/GUI/View/Instrument/OffspecDetectorEditor.cpp
@@ -33,11 +33,6 @@ OffspecDetectorEditor::OffspecDetectorEditor(QWidget* parent, OffspecInstrumentI
     connect(collapser, &GroupBoxCollapser::toggled, this,
             [instrument](bool b) { instrument->setExpandDetector(b); });
 
-    createDetectorWidgets();
-}
-
-void OffspecDetectorEditor::createDetectorWidgets()
-{
     while (m_formLayout->rowCount() > 1)
         m_formLayout->removeRow(1);
 
diff --git a/GUI/View/Instrument/OffspecDetectorEditor.h b/GUI/View/Instrument/OffspecDetectorEditor.h
index 2ac95571ef3..47999459b8b 100644
--- a/GUI/View/Instrument/OffspecDetectorEditor.h
+++ b/GUI/View/Instrument/OffspecDetectorEditor.h
@@ -17,7 +17,6 @@
 
 #include <QGroupBox>
 
-class Instrument2DItem;
 class OffspecInstrumentItem;
 class QFormLayout;
 
@@ -34,8 +33,6 @@ signals:
     void dataChanged();
 
 private:
-    void createDetectorWidgets();
-
     OffspecInstrumentItem* m_instrument;
     QFormLayout* m_formLayout;
 };
-- 
GitLab