Skip to content

Commit 398340f

Browse files
nobubyroot
authored andcommitted
Remove unreachable code
`rb_exc_raise` never returns.
1 parent c86a661 commit 398340f

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

ext/json/ext/parser/parser.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -909,9 +909,6 @@ NORETURN(static) void raise_duplicate_key_error(JSON_ParserState *state, VALUE d
909909
cursor_position(state, &line, &column);
910910
rb_str_concat(message, build_parse_error_message("", state, line, column)) ;
911911
rb_exc_raise(parse_error_new(message, line, column));
912-
913-
raise_parse_error(RSTRING_PTR(message), state);
914-
RB_GC_GUARD(message);
915912
}
916913

917914
static inline VALUE json_decode_object(JSON_ParserState *state, JSON_ParserConfig *config, size_t count)

0 commit comments

Comments
 (0)