commonlib/misc.h

changeset 65
e679dd5cd159
parent 56
bdbbde5f754e
--- a/commonlib/misc.h	Sun Nov 28 23:45:30 2021 +0200
+++ b/commonlib/misc.h	Sun Nov 28 23:47:55 2021 +0200
@@ -29,43 +29,3 @@
 bool confirm (const QString& text);
 QString getBinaryPath (QWidget* parent);
 void assimilateWadPaths (QStringList& wadpaths);
-
-//
-// -----------------------------------------------------------------------------
-//
-
-template<typename T>
-T clamp (T a, T min, T max)
-{
-	return (a > max) ? max : (a < min) ? min : a;
-}
-
-//
-// -----------------------------------------------------------------------------
-//
-
-template<typename T>
-T min (T a, T b)
-{
-	return (a < b) ? a : b;
-}
-
-//
-// -----------------------------------------------------------------------------
-//
-
-template<typename T>
-T max (T a, T b)
-{
-	return (a > b) ? a : b;
-}
-
-//
-// -----------------------------------------------------------------------------
-//
-
-template<typename T>
-T abs (T a)
-{
-	return (a < 0) ? -a : a;
-}
\ No newline at end of file

mercurial