From a76c494a296bbadf6b316fd13593193fcede67f2 Mon Sep 17 00:00:00 2001 From: Harry Jeffery <henry.jeffery@stfc.ac.uk> Date: Wed, 13 May 2015 14:35:31 +0100 Subject: [PATCH] Refs #11704 Remove unused function --- .../MantidQt/SliceViewer/src/LineViewer.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Code/Mantid/MantidQt/SliceViewer/src/LineViewer.cpp b/Code/Mantid/MantidQt/SliceViewer/src/LineViewer.cpp index 870bac3ab28..e355290d099 100644 --- a/Code/Mantid/MantidQt/SliceViewer/src/LineViewer.cpp +++ b/Code/Mantid/MantidQt/SliceViewer/src/LineViewer.cpp @@ -961,25 +961,6 @@ int LineViewer::getPlotAxis() const { return m_lineOptions->getPlotAxis(); } // ================================================= // ============================================================================================== -/** - * Helper method to get the positive min value. - * @param curveData : CurveData to look through the data of. - * @param from : Start value - * @return : Positive min value. - */ -double getPositiveMin(const MantidQwtWorkspaceData &curveData, - const double from) { - double yPositiveMin = from; - size_t n = curveData.size(); - for (size_t i = 0; i < n; ++i) { - double y = curveData.y(i); - if (y > 0 && y < yPositiveMin) { - yPositiveMin = y; - } - } - return yPositiveMin; -} - /** * Set up the appropriate scale engine. * Uses the isLogScaled method to work out which scale engine to make. -- GitLab