# HG changeset patch # User Teemu Piippo # Date 1638136075 -7200 # Node ID e679dd5cd1591ec0549b4166a295f90218fe7257 # Parent c55e46b7ddeb50e88abfc57a8f1269bc9b39c1ed Removed more unnecessary c ode diff -r c55e46b7ddeb -r e679dd5cd159 commonlib/misc.h --- 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 -T clamp (T a, T min, T max) -{ - return (a > max) ? max : (a < min) ? min : a; -} - -// -// ----------------------------------------------------------------------------- -// - -template -T min (T a, T b) -{ - return (a < b) ? a : b; -} - -// -// ----------------------------------------------------------------------------- -// - -template -T max (T a, T b) -{ - return (a > b) ? a : b; -} - -// -// ----------------------------------------------------------------------------- -// - -template -T abs (T a) -{ - return (a < 0) ? -a : a; -} \ No newline at end of file