From 93bcfd14cf64a80d2797e078c13b9b57e5cd606e Mon Sep 17 00:00:00 2001 From: Mikhail Svechnikov <m.svechnikov@fz-juelich.de> Date: Thu, 6 Jul 2023 13:11:58 +0200 Subject: [PATCH] rm setWithPolarizerAnalyzer --- GUI/Model/Device/InstrumentItems.h | 1 - GUI/Model/FromCore/ItemizeSimulation.cpp | 2 -- 2 files changed, 3 deletions(-) diff --git a/GUI/Model/Device/InstrumentItems.h b/GUI/Model/Device/InstrumentItems.h index f246fcf6b5f..e3918e3bdee 100644 --- a/GUI/Model/Device/InstrumentItems.h +++ b/GUI/Model/Device/InstrumentItems.h @@ -88,7 +88,6 @@ public: BackgroundItem* backgroundItem() const { return m_background.currentItem(); } bool withPolarizerAnalyzer() const { return m_withPolarizerAnalyzer; } - void setWithPolarizerAnalyzer(bool with) { m_withPolarizerAnalyzer = with; } bool withPolarizer() const { return m_withPolarizer; } void setWithPolarizer(bool with) { m_withPolarizer = with; } bool withAnalyzer() const { return m_withAnalyzer; } diff --git a/GUI/Model/FromCore/ItemizeSimulation.cpp b/GUI/Model/FromCore/ItemizeSimulation.cpp index 9b4ea275126..b3df13a43ce 100644 --- a/GUI/Model/FromCore/ItemizeSimulation.cpp +++ b/GUI/Model/FromCore/ItemizeSimulation.cpp @@ -351,7 +351,6 @@ GISASInstrumentItem* createGISASInstrumentItem(const ScatteringSimulation& simul updateDetector(result, simulation.detector()); result->setWithPolarizer(true); result->setWithAnalyzer(true); - result->setWithPolarizerAnalyzer(true); return result; } @@ -381,7 +380,6 @@ OffspecInstrumentItem* createOffspecInstrumentItem(const OffspecSimulation& simu setPolarizer2(result, detector.analyzer()); result->setWithPolarizer(true); result->setWithAnalyzer(true); - result->setWithPolarizerAnalyzer(true); return result; } -- GitLab