diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-01-24 22:30:20 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-04-03 23:43:34 +0200 |
| commit | 4b74bd9f359b9fe4f841cd9a361f3b2b24c2351e (patch) | |
| tree | 5c4937e6c902597ac0575c07be9e8b235ecc7c4c /src/lib/util.cc | |
| parent | d311043bf3c1e3e7f41b314f7ab7c91ed7e5aa7f (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.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index ccd505e57..6bcacf9f2 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -529,18 +529,6 @@ digest_head_tail (vector<boost::filesystem::path> files, boost::uintmax_t size) return digester.get (); } -/** 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 |
