Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions eval.c
Original file line number Diff line number Diff line change
Expand Up @@ -1492,12 +1492,6 @@ rb_using_module(const rb_cref_t *cref, VALUE module)
rb_clear_all_refinement_method_cache();
}

void
rb_vm_using_module(VALUE module)
{
rb_using_module(rb_vm_cref_replace_with_duplicated_cref(), module);
}

/*
* call-seq:
* target -> class_or_module
Expand Down
1 change: 0 additions & 1 deletion internal/eval.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ void rb_class_modify_check(VALUE);
NORETURN(VALUE rb_f_raise(int argc, VALUE *argv));
VALUE rb_exception_setup(int argc, VALUE *argv);
void rb_refinement_setup(struct rb_refinements_data *data, VALUE module, VALUE klass);
void rb_vm_using_module(VALUE module);
VALUE rb_top_main_class(const char *method);
VALUE rb_ec_ensure(rb_execution_context_t *ec, VALUE (*b_proc)(VALUE), VALUE data1, VALUE (*e_proc)(VALUE), VALUE data2);

Expand Down
12 changes: 0 additions & 12 deletions process.c
Original file line number Diff line number Diff line change
Expand Up @@ -1673,18 +1673,6 @@ proc_exec_sh(const char *str, VALUE envp_str)

#ifdef _WIN32
rb_w32_uspawn(P_OVERLAY, (char *)str, 0);
#elif defined(__CYGWIN32__)
{
char fbuf[MAXPATHLEN];
char *shell = dln_find_exe_r("sh", 0, fbuf, sizeof(fbuf));
int status = -1;
if (shell)
execl(shell, "sh", "-c", str, (char *) NULL);
else
status = system(str);
if (status != -1)
exit(status);
}
#else
if (envp_str)
execle("/bin/sh", "sh", "-c", str, (char *)NULL, RB_IMEMO_TMPBUF_PTR(envp_str)); /* async-signal-safe */
Expand Down