Removing ECMA_TYPE__COUNT enum value; fixing comment to ecma_copy_value

This commit is contained in:
Ruben Ayrapetyan
2014-08-22 17:50:57 +04:00
parent a8486b01ed
commit dca9bcc387
4 changed files with 8 additions and 45 deletions
-19
View File
@@ -69,11 +69,6 @@ ecma_op_check_object_coercible (ecma_value_t value) /**< ecma-value */
{
break;
}
case ECMA_TYPE__COUNT:
{
JERRY_UNREACHABLE();
}
}
return ecma_make_empty_completion_value ();
@@ -180,11 +175,6 @@ ecma_op_to_primitive (ecma_value_t value, /**< ecma-value */
{
JERRY_UNIMPLEMENTED_REF_UNUSED_VARS(preferred_type);
}
case ECMA_TYPE__COUNT:
{
JERRY_UNREACHABLE();
}
}
JERRY_UNREACHABLE();
@@ -249,10 +239,6 @@ ecma_op_to_boolean (ecma_value_t value) /**< ecma-value */
break;
}
case ECMA_TYPE__COUNT:
{
JERRY_UNREACHABLE();
}
}
JERRY_UNREACHABLE();
@@ -293,10 +279,6 @@ ecma_op_to_number (ecma_value_t value) /**< ecma-value */
return completion_to_number;
}
case ECMA_TYPE__COUNT:
{
JERRY_UNREACHABLE();
}
}
JERRY_UNREACHABLE();
@@ -386,7 +368,6 @@ ecma_op_to_string (ecma_value_t value) /**< ecma-value */
}
case ECMA_TYPE_OBJECT:
case ECMA_TYPE__COUNT:
{
JERRY_UNREACHABLE ();
}
@@ -110,10 +110,6 @@ ecma_op_create_object_object_arg (ecma_value_t value) /**< argument of construct
ecma_make_object_value (obj_p),
ECMA_TARGET_ID_RESERVED);
}
case ECMA_TYPE__COUNT:
{
JERRY_UNREACHABLE();
}
}
JERRY_UNREACHABLE();