Cleanup: move stride_round_up into the only place it is used.
[dcpomatic.git] / src / lib / util.cc
index 1984ed4766e58473285ae0d41d2fba85d4d51de7..2767068d4ddb6d41cf477b32a9f94b5b73cf52ca 100644 (file)
@@ -551,20 +551,6 @@ simple_digest (vector<boost::filesystem::path> paths)
 }
 
 
-/** Round a number up to the nearest multiple of another number.
- *  @param c Index.
- *  @param stride Array of numbers to round, indexed by c.
- *  @param t Multiple to round to.
- *  @return Rounded number.
- */
-int
-stride_round_up (int c, int const * stride, int t)
-{
-       int const a = stride[c] + (t - 1);
-       return a - (a % t);
-}
-
-
 /** Trip an assert if the caller is not in the UI thread */
 void
 ensure_ui_thread ()