From f114f83720a9cab5e5bcba35492b4a8733bebd4d Mon Sep 17 00:00:00 2001 From: Akos Kiss Date: Thu, 13 Sep 2018 14:18:47 +0200 Subject: [PATCH] Remove the JERRY_GET_CURRENT_CONTEXT macro (#2512) It was an unused and undocumented macro that enabled diverting the `jerry_port_get_current_context` calls, an approach that was not used anywhere else in the Port API. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu --- jerry-core/jcontext/jcontext.h | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/jerry-core/jcontext/jcontext.h b/jerry-core/jcontext/jcontext.h index c1d01354f..2c44fa931 100644 --- a/jerry-core/jcontext/jcontext.h +++ b/jerry-core/jcontext/jcontext.h @@ -170,14 +170,7 @@ struct jerry_context_t * This part is for JerryScript which uses external context. */ -#ifndef JERRY_GET_CURRENT_CONTEXT -/** - * Default function if JERRY_GET_CURRENT_CONTEXT is not defined. - */ -#define JERRY_GET_CURRENT_CONTEXT() (jerry_port_get_current_context ()) -#endif /* !JERRY_GET_CURRENT_CONTEXT */ - -#define JERRY_CONTEXT(field) (JERRY_GET_CURRENT_CONTEXT ()->field) +#define JERRY_CONTEXT(field) (jerry_port_get_current_context ()->field) #ifndef JERRY_SYSTEM_ALLOCATOR