Skip to content

Commit

Permalink
proc.c: remove rb_block_clear_env_self
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Oct 27, 2015
1 parent 6b78bfc commit ec4ba1b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
11 changes: 0 additions & 11 deletions proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ec4ba1b

Please sign in to comment.