diff --git a/GUI/Model/Data/DataItemUtil.cpp b/GUI/Model/Data/DataItemUtil.cpp index f239794ce1d707257dec90561bd7864c26b7dc81..889dfb678f1a91926f0aee839ff3d50be527ee9f 100644 --- a/GUI/Model/Data/DataItemUtil.cpp +++ b/GUI/Model/Data/DataItemUtil.cpp @@ -26,21 +26,6 @@ void GUI::Model::DataItemUtil::updateAxesTitle(DataItem* intensityItem, const Fr intensityItem->setYaxisTitle(QString::fromStdString(frame.axis(1).axisName())); } -//! Updates axes of Datafield in IntensityData item to correspond with axes units selection. -//! InstrumentItem is used to get domain's detector map for given units. - -void GUI::Model::DataItemUtil::updateDataAxes(DataItem* dataItem, const Frame& frame) -{ - ASSERT(dataItem); - const Datafield* oldData = dataItem->c_field(); - if (!oldData) - return; - - dataItem->setDatafield({frame.clonedAxes(), oldData->flatVector(), oldData->errorSigmas()}); - dataItem->setAxesRangeToData(); - updateAxesTitle(dataItem, frame); -} - void GUI::Model::DataItemUtil::createDefaultDetectorMap(DataItem* dataItem, const Frame& frame) { dataItem->setDatafield({frame.clonedAxes()}); diff --git a/GUI/Model/Data/DataItemUtil.h b/GUI/Model/Data/DataItemUtil.h index a990cbc9d977da40031f0150589718800cbe3d02..f9d0c27a6b948b7c1e9b4c0164cc566fb3274c49 100644 --- a/GUI/Model/Data/DataItemUtil.h +++ b/GUI/Model/Data/DataItemUtil.h @@ -30,9 +30,6 @@ namespace GUI::Model::DataItemUtil { //! Updates axes' titles void updateAxesTitle(DataItem* intensityItem, const Frame& frame); -//! Updates axes of Datafield in IntensityData item -void updateDataAxes(DataItem* dataItem, const Frame& frame); - //! Creates zero-value intensity map with given coordinate system void createDefaultDetectorMap(DataItem* dataItem, const Frame& frame);