From 79289714dced3121c703cba4bde7bbfa2f78c934 Mon Sep 17 00:00:00 2001 From: Tamas Zakor Date: Tue, 27 Mar 2018 16:10:49 +0200 Subject: [PATCH] Remove unused functions which caused build error on clang (#2257) JerryScript-DCO-1.0-Signed-off-by: Tamas Zakor ztamas@inf.u-szeged.hu --- jerry-core/ecma/base/ecma-helpers-string.c | 8 -------- jerry-core/ecma/base/ecma-lcache.c | 20 -------------------- 2 files changed, 28 deletions(-) diff --git a/jerry-core/ecma/base/ecma-helpers-string.c b/jerry-core/ecma/base/ecma-helpers-string.c index 44e186a62..f28621622 100644 --- a/jerry-core/ecma/base/ecma-helpers-string.c +++ b/jerry-core/ecma/base/ecma-helpers-string.c @@ -55,14 +55,6 @@ JERRY_STATIC_ASSERT ((int) ECMA_DIRECT_STRING_UINT == (int) ECMA_STRING_CONTAINE JERRY_STATIC_ASSERT (ECMA_PROPERTY_NAME_TYPE_SHIFT > ECMA_VALUE_SHIFT, ecma_property_name_type_shift_must_be_greater_than_ecma_value_shift); -/** - * Checks whether the string is direct - */ -static inline bool __attr_always_inline___ -ecma_is_string_direct (ecma_string_t *string_p) -{ - return (((uintptr_t) string_p) & 0x1) != 0; -} /* ecma_is_string_direct */ /** * Convert a string to an unsigned 32 bit value if possible diff --git a/jerry-core/ecma/base/ecma-lcache.c b/jerry-core/ecma/base/ecma-lcache.c index 32b69bc41..572a12c8e 100644 --- a/jerry-core/ecma/base/ecma-lcache.c +++ b/jerry-core/ecma/base/ecma-lcache.c @@ -134,27 +134,7 @@ ecma_lcache_insert (ecma_object_t *object_p, /**< object */ #ifndef CONFIG_ECMA_LCACHE_DISABLE -/** - * Converts a string into a property name - * - * @return the compressed pointer part of the name - */ -static inline jmem_cpointer_t __attr_always_inline___ -ecma_string_to_lcache_property_name (const ecma_string_t *prop_name_p, /**< property name */ - ecma_property_t *name_type_p) /**< [out] property name type */ -{ - if (ECMA_IS_DIRECT_STRING (prop_name_p)) - { - *name_type_p = (ecma_property_t) ECMA_GET_DIRECT_STRING_TYPE (prop_name_p); - return (jmem_cpointer_t) ECMA_GET_DIRECT_STRING_VALUE (prop_name_p); - } - *name_type_p = ECMA_DIRECT_STRING_PTR; - - jmem_cpointer_t prop_name_cp; - ECMA_SET_NON_NULL_POINTER (prop_name_cp, prop_name_p); - return prop_name_cp; -} /* ecma_string_to_lcache_property_name */ #endif /* !CONFIG_ECMA_LCACHE_DISABLE */