diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-24 22:26:59 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-01-25 19:44:56 +0100 |
| commit | 07befde2cbbad4d979631727fc35399164d0aa1c (patch) | |
| tree | fbc537ff6789d8aabe71e69b4055daf302527cd1 /src/lib/util.h | |
| parent | dadde92543ee5039d2dc869c698fcde7ffac5f4b (diff) | |
Cleanup: move some methods from util to maths_util.
Diffstat (limited to 'src/lib/util.h')
| -rw-r--r-- | src/lib/util.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/lib/util.h b/src/lib/util.h index 0f3351dbf..790feea05 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 */ @@ -130,15 +126,6 @@ extern dcp::DecryptedKDM decrypt_kdm_with_helpful_error (dcp::EncryptedKDM kdm); extern boost::filesystem::path default_font_file (); extern std::string to_upper (std::string s); extern void start_of_thread (std::string name); -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 |
