From 923f18dc6db00667d822ddfc564ae056456cb7c2 Mon Sep 17 00:00:00 2001 From: Mike Danes Date: Sat, 14 Oct 2017 14:34:56 +0300 Subject: [PATCH] Remove IAllocator based operator new --- src/jit/compiler.h | 4 ---- src/jit/compiler.hpp | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/src/jit/compiler.h b/src/jit/compiler.h index 7ff0f43..0b30dfe 100644 --- a/src/jit/compiler.h +++ b/src/jit/compiler.h @@ -106,10 +106,6 @@ class Compiler; // Declare global operator new overloads that use the Compiler::compGetMem() function for allocation. // -// Or the more-general IAllocator interface. -void* __cdecl operator new(size_t n, IAllocator* alloc); -void* __cdecl operator new[](size_t n, IAllocator* alloc); - // I wanted to make the second argument optional, with default = CMK_Unknown, but that // caused these to be ambiguous with the global placement new operators. void* __cdecl operator new(size_t n, Compiler* context, CompMemKind cmk); diff --git a/src/jit/compiler.hpp b/src/jit/compiler.hpp index f68161d..190cc2e 100644 --- a/src/jit/compiler.hpp +++ b/src/jit/compiler.hpp @@ -5114,16 +5114,6 @@ inline void* __cdecl operator new(size_t sz, void* p, const jitstd::placement_t& return p; } -inline void* __cdecl operator new(size_t sz, IAllocator* alloc) -{ - return alloc->Alloc(sz); -} - -inline void* __cdecl operator new[](size_t sz, IAllocator* alloc) -{ - return alloc->Alloc(sz); -} - /*****************************************************************************/ #ifdef DEBUG -- 2.7.4