diff --git a/eval_intern.h b/eval_intern.h index fa02f22912..9a551120ff 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -321,16 +321,4 @@ rb_char_next(const char *p) # endif #endif -#if defined DOSISH || defined __CYGWIN__ -static inline void -translit_char(char *p, int from, int to) -{ - while (*p) { - if ((unsigned char)*p == from) - *p = to; - p = CharNext(p); - } -} -#endif - #endif /* RUBY_EVAL_INTERN_H */ diff --git a/ruby.c b/ruby.c index 25d9e23b5d..cf32aa6e50 100644 --- a/ruby.c +++ b/ruby.c @@ -2367,8 +2367,6 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) #ifdef _WIN32 translit_char_bin(RSTRING_PTR(opt->script_name), '\\', '/'); -#elif defined DOSISH - translit_char(RSTRING_PTR(opt->script_name), '\\', '/'); #endif ruby_gc_set_params();