From 0980df65cd62e56455823262dbd36b2a82ca6617 Mon Sep 17 00:00:00 2001 From: Jon Meow <46229924+jonmeow@users.noreply.github.com> Date: Thu, 2 Sep 2021 16:00:49 -0700 Subject: [PATCH] Remove RawNew from Arena #807 --- executable_semantics/common/arena.h | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/executable_semantics/common/arena.h b/executable_semantics/common/arena.h index 8c9e0b799452..6c1774171568 100644 --- a/executable_semantics/common/arena.h +++ b/executable_semantics/common/arena.h @@ -25,16 +25,6 @@ class Arena { return ptr; } - // TODO: Remove. This is only to help findability during migration. - template - auto RawNew(Args&&... args) -> T* { - auto smart_ptr = - std::make_unique>(std::forward(args)...); - T* raw_ptr = smart_ptr->Instance().Get(); - arena.push_back(std::move(smart_ptr)); - return raw_ptr; - } - private: // Virtualizes arena entries so that a single vector can contain many types, // avoiding templated statics.