Removed the unary min and max functions.

Thu, 09 Mar 2017 00:40:07 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Thu, 09 Mar 2017 00:40:07 +0200
changeset 1207
b5df72b194f4
parent 1206
743dc95e0be6
child 1208
8d4b8a9df724

Removed the unary min and max functions.

src/basics.h file | annotate | diff | comparison | revisions
--- a/src/basics.h	Wed Mar 08 22:48:43 2017 +0200
+++ b/src/basics.h	Thu Mar 09 00:40:07 2017 +0200
@@ -330,15 +330,6 @@
 }
 
 /*
- * Returns the maximum of a single parameter (the parameter itself).
- */
-template <typename T>
-T max(T a)
-{
-	return a;
-}
-
-/*
  * Returns the maximum of two parameters.
  */
 template <typename T>
@@ -357,15 +348,6 @@
 }
 
 /*
- * Returns the minimum of a single parameter (the parameter itself).
- */
-template <typename T>
-T min(T a)
-{
-	return a;
-}
-
-/*
  * Returns the minimum of two parameters.
  */
 template <typename T>

mercurial