From d1437245c77b930382f9b36355a3fa67d48ecb38 Mon Sep 17 00:00:00 2001 From: Karsten Loesing Date: Sat, 11 Jul 2009 00:44:27 +0200 Subject: Simplify the math to round up to the next multiple of some value. --- src/or/geoip.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/or/geoip.c') diff --git a/src/or/geoip.c b/src/or/geoip.c index 13a6a28500..aac4893117 100644 --- a/src/or/geoip.c +++ b/src/or/geoip.c @@ -461,16 +461,6 @@ _c_hist_compare(const void **_a, const void **_b) * are willing to talk about it? */ #define GEOIP_MIN_OBSERVATION_TIME (12*60*60) -/** Return the lowest x such that x is at least number, and x modulo - * divisor == 0. */ -static INLINE unsigned -round_to_next_multiple_of(unsigned number, unsigned divisor) -{ - number += divisor - 1; - number -= number % divisor; - return number; -} - /** Return a newly allocated comma-separated string containing entries for all * the countries from which we've seen enough clients connect. The entry * format is cc=num where num is the number of IPs we've seen connecting from -- cgit v1.2.3-54-g00ecf