From 01ffb97b5e8771548b6fde39003ca94bdbd3b660 Mon Sep 17 00:00:00 2001
From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de>
Date: Mon, 23 May 2022 17:48:57 +0200
Subject: [PATCH] rm unused fct

---
 GUI/Model/Device/Instrument.cpp | 9 ---------
 GUI/Model/Device/Instrument.h   | 1 -
 2 files changed, 10 deletions(-)

diff --git a/GUI/Model/Device/Instrument.cpp b/GUI/Model/Device/Instrument.cpp
index 57ebc412850..77351b6a909 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 0be144cf9a6..defa70f597b 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"; }
-- 
GitLab