Remove redundant code in lit_charset_literal_get_length

JerryScript-DCO-1.0-Signed-off-by: Xin Hu Xin.A.Hu@intel.com
This commit is contained in:
Xin Hu 2016-01-14 12:28:25 -05:00 committed by Ruben Ayrapetyan
parent ba95cb010a
commit 73a5fd78a7

View File

@ -628,7 +628,7 @@ lit_charset_literal_get_length (lit_literal_t lit) /**< literal */
rcs_iterator_skip (&it_ctx, bytes_to_skip);
i += bytes_to_skip;
length += (bytes_to_skip > LIT_UTF8_MAX_BYTES_IN_CODE_UNIT) ? 2 : 1;
length++;
}
#ifndef JERRY_NDEBUG