diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-01 17:25:48 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-01 17:25:48 +0100 |
| commit | f9fcc34179a6f86425427741c60d8876099d3ed3 (patch) | |
| tree | 801737b5b7627ab553026b384150d2372ac46d0e /src/lib/util.cc | |
| parent | d6b7cc651e0918b903f1a66a8246ba86c7509a61 (diff) | |
Remove some unused methods.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 05eb3121e..3837aacc7 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -440,19 +440,6 @@ md5_digest_head_tail (vector<boost::filesystem::path> files, boost::uintmax_t si return digester.get (); } -/** @param An arbitrary audio frame rate. - * @return The appropriate DCP-approved frame rate (48kHz or 96kHz). - */ -int -dcp_audio_frame_rate (int fs) -{ - if (fs <= 48000) { - return 48000; - } - - return 96000; -} - /** Round a number up to the nearest multiple of another number. * @param c Index. * @param s Array of numbers to round, indexed by c. @@ -466,17 +453,6 @@ stride_round_up (int c, int const * stride, int t) return a - (a % t); } -/** @param n A number. - * @param r Rounding `boundary' (must be a power of 2) - * @return n rounded to the nearest r - */ -int -round_to (float n, int r) -{ - DCPOMATIC_ASSERT (r == 1 || r == 2 || r == 4); - return int (n + float(r) / 2) &~ (r - 1); -} - /** Trip an assert if the caller is not in the UI thread */ void ensure_ui_thread () |
