From 4493d6d39d5ac23efb1b893c30948a1fb0a1996e Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 13 Mar 2017 13:16:56 +0000 Subject: [PATCH] [disk-units] remove some dead code. --- base/disk_units.cc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/base/disk_units.cc b/base/disk_units.cc index 66f71a2..028fb54 100644 --- a/base/disk_units.cc +++ b/base/disk_units.cc @@ -56,16 +56,6 @@ base::disk_unit_multiplier(disk_unit u) namespace { - bool small_enough(unsigned long long n) { - if (n > 1024ull * 1024ull) - return false; - - if (n < 1024ull) - return true; - - return (n & 1023) && (n < 8ull * 1024ull); - } - unsigned long long round_ull(unsigned long long n, unsigned long long d) { return round(static_cast(n) / static_cast(d)); }