summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-04 22:37:31 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-04 22:37:31 +0200
commitcf2ed48d21ddbc32bda262064480e88e69dc031a (patch)
tree039a981cebf24e1e7ca34478d35cd3c70b280bab /src/lib/util.h
parent4b74bd9f359b9fe4f841cd9a361f3b2b24c2351e (diff)
Cleanup: move some methods from util to maths_util.
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/util.h b/src/lib/util.h
index bd9eaf96e..fd11fffbd 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -51,10 +51,6 @@ namespace dcp {
class SoundAsset;
}
-#ifndef M_PI
-#define M_PI (3.14159265358979323846)
-#endif
-
/** The maximum number of audio channels that we can have in a DCP */
#define MAX_DCP_AUDIO_CHANNELS 16
/** Message broadcast to find possible encoding servers */
@@ -152,15 +148,4 @@ list_to_vector (std::list<T> v)
return l;
}
-extern double db_to_linear (double db);
-extern double linear_to_db (double linear);
-
-
-template <class T>
-T clamp (T val, T minimum, T maximum)
-{
- return std::max(std::min(val, maximum), minimum);
-}
-
-
#endif