From 68ed8be335e52d966e53e2ed3c850cc7f26c0b0b Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 1 Jun 2022 07:01:03 +0200 Subject: [PATCH] rm unused fct --- Base/Axis/Frame.cpp | 10 ---------- Base/Axis/Frame.h | 5 ----- 2 files changed, 15 deletions(-) diff --git a/Base/Axis/Frame.cpp b/Base/Axis/Frame.cpp index 2081486a735..a89f3e31060 100644 --- a/Base/Axis/Frame.cpp +++ b/Base/Axis/Frame.cpp @@ -89,16 +89,6 @@ size_t Frame::toGlobalIndex(const std::vector<unsigned>& axes_indices) const return result; } -size_t Frame::findGlobalIndex(const std::vector<double>& coordinates) const -{ - ASSERT(coordinates.size() == rank()); - std::vector<unsigned> axes_indexes; - axes_indexes.resize(rank()); - for (size_t k = 0; k < rank(); ++k) - axes_indexes[k] = static_cast<unsigned>(m_axes[k]->findClosestIndex(coordinates[k])); - return toGlobalIndex(axes_indexes); -} - bool Frame::operator==(const Frame& o) const { if (rank() != o.rank()) diff --git a/Base/Axis/Frame.h b/Base/Axis/Frame.h index 34414c762e9..494790d5b99 100644 --- a/Base/Axis/Frame.h +++ b/Base/Axis/Frame.h @@ -68,11 +68,6 @@ public: //! @return Corresponding global index size_t toGlobalIndex(const std::vector<unsigned>& axes_indices) const; - //! Returns global index for specified axes values - //! @param coordinates Vector of axes coordinates for all specified axes in this dataset - //! @return Closest global index - size_t findGlobalIndex(const std::vector<double>& coordinates) const; - //! Returns true if both Frame%s have same rank, and all axes have same sizes. bool hasSameSizes(const Frame&) const; -- GitLab