From b434a42f9384d26e797ac781f1afaa17b75f5e4e Mon Sep 17 00:00:00 2001 From: "sergey.kitov" Date: Wed, 31 Aug 2022 23:36:45 +0300 Subject: [PATCH] Remove duplicated division by scalar operator --- src/r4/vector.hpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/r4/vector.hpp b/src/r4/vector.hpp index 69a7675..11ec7b4 100644 --- a/src/r4/vector.hpp +++ b/src/r4/vector.hpp @@ -532,18 +532,6 @@ template class vector : public std::array{ (*this) *= T(1)/num; return *this; } - - /** - * @brief Divide by scalar. - * Divide this vector by scalar. - * @param num - scalar to divide by. - * @return Vector resulting from division of this vector by scalars. - */ - vector operator/(T num)noexcept{ - ASSERT_INFO(num != 0, "vector::operator/(): division by 0") - return (vector(*this) /= num); - } - /** * @brief Dot product. * @param vec -vector to multiply by.