diff --git a/GUI/Model/Device/Instrument.cpp b/GUI/Model/Device/Instrument.cpp index b5c7f288c8ef298814a2416c66f79c0c55d7df15..a1e3d361e4a19354a3394361eaffd8826aee5a31 100644 --- a/GUI/Model/Device/Instrument.cpp +++ b/GUI/Model/Device/Instrument.cpp @@ -30,11 +30,6 @@ Instrument::Instrument(const Instrument& other) Instrument::~Instrument() = default; -void Instrument::setDetector(const IDetector& detector) -{ - m_detector.reset(detector.clone()); -} - const IDetector* Instrument::getDetector() const { return m_detector.get(); diff --git a/GUI/Model/Device/Instrument.h b/GUI/Model/Device/Instrument.h index 7da84756ec6df0ab9fa20b623f706a5e75c37cd8..4121912bd343fd15f612a4fbc023f1fce1c64528 100644 --- a/GUI/Model/Device/Instrument.h +++ b/GUI/Model/Device/Instrument.h @@ -29,7 +29,6 @@ public: Instrument(const Instrument& other); ~Instrument(); - Beam& beam() { return *m_beam; } const Beam& beam() const { return *m_beam; } IDetector* getDetector(); @@ -37,9 +36,6 @@ public: IDetector& detector(); const IDetector& detector() const; - //! Sets the detector (axes can be overwritten later) - void setDetector(const IDetector& detector); - protected: std::unique_ptr<Beam> m_beam; std::unique_ptr<IDetector> m_detector;