Index: cc/base/util.h |
diff --git a/cc/base/util.h b/cc/base/util.h |
deleted file mode 100644 |
index a16d4855283f849c0330efcd79a339a2982f0271..0000000000000000000000000000000000000000 |
--- a/cc/base/util.h |
+++ /dev/null |
@@ -1,31 +0,0 @@ |
-// Copyright 2012 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef CC_BASE_UTIL_H_ |
-#define CC_BASE_UTIL_H_ |
- |
-#include <limits> |
- |
-#include "base/basictypes.h" |
- |
-namespace cc { |
- |
-template <typename T> T RoundUp(T n, T mul) { |
- static_assert(std::numeric_limits<T>::is_integer, |
- "T must be an integer type"); |
- return (n > 0) ? ((n + mul - 1) / mul) * mul |
- : (n / mul) * mul; |
-} |
- |
-template <typename T> T RoundDown(T n, T mul) { |
- static_assert(std::numeric_limits<T>::is_integer, |
- "T must be an integer type"); |
- return (n > 0) ? (n / mul) * mul |
- : (n == 0) ? 0 |
- : ((n - mul + 1) / mul) * mul; |
-} |
- |
-} // namespace cc |
- |
-#endif // CC_BASE_UTIL_H_ |