diff --git a/GUI/Model/Device/Instrument.cpp b/GUI/Model/Device/Instrument.cpp index 57ebc412850e98e792e90dcf8b32b6ca55a02680..77351b6a909df9a3babbaea3620e567608b24bef 100644 --- a/GUI/Model/Device/Instrument.cpp +++ b/GUI/Model/Device/Instrument.cpp @@ -40,15 +40,6 @@ Instrument::Instrument(const Instrument& other) Instrument::~Instrument() = default; -Instrument& Instrument::operator=(const Instrument& other) -{ - if (this != &other) { - Instrument tmp(other.beam(), other.detector()); - std::swap(*this, tmp); - } - return *this; -} - void Instrument::setDetector(const IDetector& detector) { m_detector.reset(detector.clone()); diff --git a/GUI/Model/Device/Instrument.h b/GUI/Model/Device/Instrument.h index 0be144cf9a646c4b08b16756892f0a43bb9f9e78..defa70f597b61fbf60724dcac38fa3622a56f61f 100644 --- a/GUI/Model/Device/Instrument.h +++ b/GUI/Model/Device/Instrument.h @@ -31,7 +31,6 @@ public: Instrument(); Instrument(const Beam& beam, const IDetector& detector); Instrument(const Instrument& other); - Instrument& operator=(const Instrument& other); ~Instrument() override; std::string className() const final { return "Instrument"; }