From f2734ff3ab09d3ab78321daf61d18cb628da2b98 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 22 Aug 2020 17:23:37 +0300 Subject: libcamera: Replace utils::clamp() with std::clamp() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that libcamera uses C++17, the C++ standard library provides std::clamp(). Drop our custom utils::clamp() function. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham Reviewed-by: Niklas Söderlund --- src/libcamera/utils.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/libcamera/utils.cpp') diff --git a/src/libcamera/utils.cpp b/src/libcamera/utils.cpp index 615df46a..a5232902 100644 --- a/src/libcamera/utils.cpp +++ b/src/libcamera/utils.cpp @@ -146,14 +146,6 @@ std::string dirname(const std::string &path) * \return The number of elements in the intersection of the two ranges */ -/** - * \fn libcamera::utils::clamp(const T& v, const T& lo, const T& hi) - * \param[in] v The value to clamp - * \param[in] lo The lower boundary to clamp v to - * \param[in] hi The higher boundary to clamp v to - * \return lo if v is less than lo, hi if v is greater than hi, otherwise v - */ - /** * \typedef clock * \brief The libcamera clock (monotonic) -- cgit v1.2.1