summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-01-24 22:30:20 +0100
committerCarl Hetherington <cth@carlh.net>2022-01-25 19:44:56 +0100
commitf471db4e8dc7f3dd1eb7a9cf4d8d11e7d340df65 (patch)
tree183c602f84b0fd54230d622406ecc1b550981a40 /src/lib/util.cc
parent07befde2cbbad4d979631727fc35399164d0aa1c (diff)
Cleanup: move stride_round_up into the only place it is used.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 1984ed476..2767068d4 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -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 ()