From 764d74561d3ba3b9254acac4d13e0ab56e5b1900 Mon Sep 17 00:00:00 2001 From: Roland Takacs Date: Thu, 4 Feb 2016 14:33:07 +0100 Subject: [PATCH] Remove the placement 'new' operator. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs rtakacs.u-szeged@partner.samsung.com --- jerry-core/jrt/jrt.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/jerry-core/jrt/jrt.h b/jerry-core/jrt/jrt.h index 5a23227b1..496a619e7 100644 --- a/jerry-core/jrt/jrt.h +++ b/jerry-core/jrt/jrt.h @@ -214,18 +214,6 @@ extern void __noreturn jerry_fatal (jerry_fatal_code_t); #define JERRY_MIN(v1, v2) ((v1 < v2) ? v1 : v2) #define JERRY_MAX(v1, v2) ((v1 < v2) ? v2 : v1) -/** - * Placement new operator (constructs an object on a pre-allocated buffer) - * - * Our version of the libc library doesn't support calling the constructors and destructors of the static variables. - * It is proposed to use placement new operator. Generally it is available via #include , - * To fix the unavailability of the header in some configurations placement new operator is implemented here. - */ -inline void *operator new (size_t, void *where) -{ - return where; -} /* operator new */ - /** * Read data from a specified buffer. *