aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-05-20 15:36:03 -0500
committerErik Schnetter <schnetter@gmail.com>2013-05-20 15:36:03 -0500
commitc5ff55274bef4ec6ecd0a714d2452504a0d62ff2 (patch)
tree3ea1358952b359af2d04cf0241a4e7d36a525090 /Carpet/CarpetLib/src
parentf38e7da6e3481a33fa9b49f2674a84226f5a7aa3 (diff)
CarpetLib: Remove now outdated definitions of idiv and imod
Diffstat (limited to 'Carpet/CarpetLib/src')
-rw-r--r--Carpet/CarpetLib/src/vect.hh15
1 files changed, 2 insertions, 13 deletions
diff --git a/Carpet/CarpetLib/src/vect.hh b/Carpet/CarpetLib/src/vect.hh
index 95840b17c..a8b708cca 100644
--- a/Carpet/CarpetLib/src/vect.hh
+++ b/Carpet/CarpetLib/src/vect.hh
@@ -407,19 +407,8 @@ DECLARE_OPERATOR_1_RET (operator!, !, bool)
DECLARE_FUNCTION_2 (max)
DECLARE_FUNCTION_2 (min)
DECLARE_FUNCTION_2 (pow)
-
-template<typename T>
-T idiv(T const& x, T const& y)
-{
- return x>=T(0) ? x/y : -(-x/y);
-}
-template<typename T>
-T imod(T const& x, T const& y)
-{
- return x>=T(0) ? x%y : -(-x%y);
-}
-DECLARE_FUNCTION_2 (idiv) // divide, rounding to minus infinity
-DECLARE_FUNCTION_2 (imod) // modulo, rounding to minus infinity
+DECLARE_FUNCTION_2 (idiv)
+DECLARE_FUNCTION_2 (imod)
DECLARE_OPERATOR_2 (operator+, +)
DECLARE_OPERATOR_2 (operator-, -)