summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-15 11:19:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-15 11:19:56 +0000
commitc7c3a275f33ca1f2485a0a496fac8b076f38beed (patch)
tree5239f55ac4e7d21d09e75ee7c403a15c793903e3 /file.c
parentb5a9cd8fb82c33d03e8487d24825690de1697cc0 (diff)
error.c: rb_sys_fail_path_in
* error.c (syserr_initialize): add optional function name. * error.c (rb_sys_fail_path_in): rename and move from file.c, and pass func_name to SystemCallError#initialize. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/file.c b/file.c
index 6e30c067f3..fa96c2388d 100644
--- a/file.c
+++ b/file.c
@@ -102,22 +102,6 @@ int flock(int, int);
#define STAT(p, s) stat((p), (s))
#endif
-#ifdef RUBY_FUNCTION_NAME_STRING
-void
-rb_sys_fail_path_with_func(const char *func_name, VALUE path)
-{
- VALUE mesg = rb_str_new_cstr(func_name);
- if (!NIL_P(path)) {
- /* RUBY_FUNCTION_NAME_STRING, aka __func__/__FUNCTION__ is not a
- * preprocessor macro but a static constant array, so string
- * literal concatenation is not allowed */
- rb_str_buf_cat2(mesg, ": ");
- rb_str_buf_append(mesg, path);
- }
- rb_sys_fail_str(mesg);
-}
-#endif
-
#if defined(__BEOS__) || defined(__HAIKU__) /* should not change ID if -1 */
static int
be_chown(const char *path, uid_t owner, gid_t group)