Skip to content
Snippets Groups Projects
Commit 253794d6 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

rm ASSERT

parent 1df88de0
No related branches found
No related tags found
2 merge requests!907Core cleanup,!905mv class Instrument out of core
......@@ -58,9 +58,6 @@ void Instrument::setDetector(const IDetector& detector)
void Instrument::initDetector()
{
if (!m_detector)
throw std::runtime_error(
"Instrument::initDetector() -> Error. Detector is not initialized.");
m_detector->setDetectorNormal(beam().direction().zReflected());
}
......@@ -93,12 +90,10 @@ IDetector* Instrument::getDetector()
const IDetector& Instrument::detector() const
{
ASSERT(m_detector);
return *m_detector;
}
IDetector& Instrument::detector()
{
ASSERT(m_detector);
return *m_detector;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment