Skip to content

Commit 9364d0c

Browse files
etiennebarriebyroot
authored andcommitted
Remove unused symbols
1 parent ab5efca commit 9364d0c

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

ext/json/ext/generator/generator.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ typedef struct JSON_Generator_StateStruct {
3838

3939
static VALUE mJSON, cState, cFragment, eGeneratorError, eNestingError, Encoding_UTF_8;
4040

41-
static ID i_to_s, i_to_json, i_new, i_pack, i_unpack, i_create_id, i_extend, i_encode;
41+
static ID i_to_s, i_to_json, i_new, i_encode;
4242
static VALUE sym_indent, sym_space, sym_space_before, sym_object_nl, sym_array_nl, sym_max_nesting, sym_allow_nan, sym_allow_duplicate_key,
4343
sym_ascii_only, sym_depth, sym_buffer_initial_length, sym_script_safe, sym_escape_slash, sym_strict, sym_as_json;
4444

@@ -2173,10 +2173,6 @@ void Init_generator(void)
21732173
i_to_s = rb_intern("to_s");
21742174
i_to_json = rb_intern("to_json");
21752175
i_new = rb_intern("new");
2176-
i_pack = rb_intern("pack");
2177-
i_unpack = rb_intern("unpack");
2178-
i_create_id = rb_intern("create_id");
2179-
i_extend = rb_intern("extend");
21802176
i_encode = rb_intern("encode");
21812177

21822178
sym_indent = ID2SYM(rb_intern("indent"));

ext/json/ext/parser/parser.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
static VALUE mJSON, eNestingError, Encoding_UTF_8;
66
static VALUE CNaN, CInfinity, CMinusInfinity;
77

8-
static ID i_chr, i_aset, i_aref,
9-
i_leftshift, i_new, i_try_convert, i_uminus, i_encode;
8+
static ID i_new, i_try_convert, i_uminus, i_encode;
109

1110
static VALUE sym_max_nesting, sym_allow_nan, sym_allow_trailing_comma, sym_symbolize_names, sym_freeze,
1211
sym_decimal_class, sym_on_load, sym_allow_duplicate_key;
@@ -1612,10 +1611,6 @@ void Init_parser(void)
16121611
sym_decimal_class = ID2SYM(rb_intern("decimal_class"));
16131612
sym_allow_duplicate_key = ID2SYM(rb_intern("allow_duplicate_key"));
16141613

1615-
i_chr = rb_intern("chr");
1616-
i_aset = rb_intern("[]=");
1617-
i_aref = rb_intern("[]");
1618-
i_leftshift = rb_intern("<<");
16191614
i_new = rb_intern("new");
16201615
i_try_convert = rb_intern("try_convert");
16211616
i_uminus = rb_intern("-@");

0 commit comments

Comments
 (0)