aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/file.c b/file.c
index 415c866eca..21f74f0129 100644
--- a/file.c
+++ b/file.c
@@ -4468,15 +4468,6 @@ rb_path_check(const char *path)
return 1;
}
-#if defined(__MACOS__) || defined(riscos)
-static int
-is_macos_native_path(const char *path)
-{
- if (strchr(path, ':')) return 1;
- return 0;
-}
-#endif
-
static int
file_load_ok(const char *path)
{
@@ -4571,16 +4562,6 @@ rb_find_file(VALUE path)
f = StringValueCStr(path);
}
-#if defined(__MACOS__) || defined(riscos)
- if (is_macos_native_path(f)) {
- if (rb_safe_level() >= 1 && !fpath_check(f)) {
- rb_raise(rb_eSecurityError, "loading from unsafe file %s", f);
- }
- if (file_load_ok(f)) return path;
- return 0;
- }
-#endif
-
if (is_absolute_path(f) || is_explicit_relative(f)) {
if (rb_safe_level() >= 1 && !fpath_check(f)) {
rb_raise(rb_eSecurityError, "loading from unsafe file %s", f);