lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue 4547: remove unnecessary min() and max() functions (issue 25818004


From: nine . fierce . ballads
Subject: Issue 4547: remove unnecessary min() and max() functions (issue 258180043 by address@hidden)
Date: Sun, 09 Aug 2015 02:10:05 +0000

Reviewers: ,

Description:
Remove unnecessary min() and max() functions.

Unnecessary in LilyDev 3 at least; I wonder what will happen on other
platforms.

Please review this at https://codereview.appspot.com/258180043/

Affected files (+0, -4 lines):
  M flower/include/compare.hh


Index: flower/include/compare.hh
diff --git a/flower/include/compare.hh b/flower/include/compare.hh
index 0b398aa18c86e441166e9c4439cbefdefd9907dc..0ec1173951590cae858e21b6c3fb2a4859bf4ded 100644
--- a/flower/include/compare.hh
+++ b/flower/include/compare.hh
@@ -37,10 +37,6 @@
     prefix ONE_OPERATOR (type, function, !=)                            \
     prefix ONE_OPERATOR (type, function, <)                             \
     prefix ONE_OPERATOR (type, function, <=)                            \
-    /* namespace std { */                                               \
- prefix inline type max (type t1, type t2) { return (t1 > t2) ? t1 : t2; } \ - prefix inline type min (type t1, type t2) { return (t1 < t2) ? t1 : t2; } \
-  /* } */                                                               \
   /* stupid fix to allow ; */                                           \
   prefix bool operator < (type t1, type t2)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]