mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Remove unused functions which caused build error on clang (#2257)
JerryScript-DCO-1.0-Signed-off-by: Tamas Zakor ztamas@inf.u-szeged.hu
This commit is contained in:
parent
e54dde55fe
commit
79289714dc
@ -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
|
||||
|
||||
@ -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 */
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user