Skip to content

Commit 5408b1e

Browse files
committed
Remove debug code.
1 parent 6fdefd9 commit 5408b1e

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/c/cext/ruby.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -947,9 +947,7 @@ VALUE rb_filesystem_str_new(const char *string, long len) {
947947
}
948948

949949
VALUE rb_filesystem_str_new_cstr(const char *string) {
950-
VALUE ret;
951-
ret = rb_external_str_new_with_enc(string, strlen(string), rb_filesystem_encoding());
952-
return ret;
950+
return rb_external_str_new_with_enc(string, strlen(string), rb_filesystem_encoding());
953951
}
954952

955953
VALUE rb_str_export(VALUE string) {
@@ -1184,9 +1182,7 @@ void rb_tr_add_flags(VALUE value, int flags) {
11841182
// Undef conflicting macro from encoding.h like MRI
11851183
#undef rb_enc_str_new
11861184
VALUE rb_enc_str_new(const char *ptr, long len, rb_encoding *enc) {
1187-
VALUE ret;
1188-
ret = RUBY_INVOKE(rb_str_new(ptr, len), "force_encoding", rb_enc_from_encoding(enc));
1189-
return ret;
1185+
return RUBY_INVOKE(rb_str_new(ptr, len), "force_encoding", rb_enc_from_encoding(enc));
11901186
}
11911187

11921188
void rb_enc_raise(rb_encoding *enc, VALUE exc, const char *fmt, ...) {

0 commit comments

Comments
 (0)