From fc551b6f330c3d8e0d240dd80a8afeed1bb6d9cb Mon Sep 17 00:00:00 2001 From: Ryan Macnak Date: Fri, 11 Dec 2015 13:13:52 -0800 Subject: [PATCH] Remove stray copy of OS::AlignedAllocate. Review URL: https://codereview.chromium.org/1518113002 . --- runtime/bin/utils_win.cc | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/runtime/bin/utils_win.cc b/runtime/bin/utils_win.cc index 1ae04017116..8a114ceecf7 100644 --- a/runtime/bin/utils_win.cc +++ b/runtime/bin/utils_win.cc @@ -191,18 +191,6 @@ int64_t TimerUtils::GetCurrentMonotonicMicros() { return result; } - -void* OS::AlignedAllocate(intptr_t size, intptr_t alignment) { - const int kMinimumAlignment = 16; - ASSERT(Utils::IsPowerOfTwo(alignment)); - ASSERT(alignment >= kMinimumAlignment); - void* p = _aligned_malloc(size, alignment); - if (p == NULL) { - UNREACHABLE(); - } - return p; -} - void TimerUtils::Sleep(int64_t millis) { ::Sleep(millis); }