From ec4ba1b7282a43b927c4e431ccc8ad4ad14e3d4b Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 27 Oct 2015 03:49:18 +0000 Subject: [PATCH] proc.c: remove rb_block_clear_env_self * proc.c (rb_block_clear_env_self): removed as deprecated at r52129. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 1 - proc.c | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/internal.h b/internal.h index 6941586703..094e4a2462 100644 --- a/internal.h +++ b/internal.h @@ -996,7 +996,6 @@ ID rb_id_attrget(ID id); VALUE rb_proc_location(VALUE self); st_index_t rb_hash_proc(st_index_t hash, VALUE proc); int rb_block_arity(void); -VALUE rb_block_clear_env_self(VALUE proc); /* process.c */ #define RB_MAX_GROUPS (65536) diff --git a/proc.c b/proc.c index b5913d66fc..943b2ea4de 100644 --- a/proc.c +++ b/proc.c @@ -694,17 +694,6 @@ rb_block_lambda(void) return proc_new(rb_cProc, TRUE); } -VALUE -rb_block_clear_env_self(VALUE proc) -{ - rb_proc_t *po; - rb_env_t *env; - GetProcPtr(proc, po); - GetEnvPtr(rb_vm_proc_envval(po), env); - env->env[0] = Qfalse; - return proc; -} - /* Document-method: === * * call-seq: