[disk-units] remove some dead code.

This commit is contained in:
Joe Thornber 2017-03-13 13:16:56 +00:00
parent cbcf68aa33
commit 4493d6d39d

View File

@ -56,16 +56,6 @@ base::disk_unit_multiplier(disk_unit u)
namespace { 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) { unsigned long long round_ull(unsigned long long n, unsigned long long d) {
return round(static_cast<double>(n) / static_cast<double>(d)); return round(static_cast<double>(n) / static_cast<double>(d));
} }