Skip to content

Commit 243b673

Browse files
authored
Merge pull request #322 from Shopify/remove-dead-variables
Remove dead fallback code for missing `rb_str_replace`
2 parents d6ab69a + 07bdc06 commit 243b673

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

ext/msgpack/buffer.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@
1919
#include "buffer.h"
2020
#include "rmem.h"
2121

22-
#ifndef HAVE_RB_STR_REPLACE
23-
static ID s_replace;
24-
#endif
25-
2622
int msgpack_rb_encindex_utf8;
2723
int msgpack_rb_encindex_usascii;
2824
int msgpack_rb_encindex_ascii8bit;
@@ -40,10 +36,6 @@ void msgpack_buffer_static_init(void)
4036
msgpack_rb_encindex_ascii8bit = rb_ascii8bit_encindex();
4137

4238
msgpack_rmem_init(&s_rmem);
43-
44-
#ifndef HAVE_RB_STR_REPLACE
45-
s_replace = rb_intern("replace");
46-
#endif
4739
}
4840

4941
void msgpack_buffer_static_destroy(void)

0 commit comments

Comments
 (0)