From f471db4e8dc7f3dd1eb7a9cf4d8d11e7d340df65 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 24 Jan 2022 22:30:20 +0100 Subject: Cleanup: move stride_round_up into the only place it is used. --- src/lib/util.cc | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/lib/util.cc') 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 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 () -- cgit v1.2.3