[前][次][番号順一覧][スレッド一覧]

ruby-changes:40214

From: nobu <ko1@a...>
Date: Tue, 27 Oct 2015 12:49:31 +0900 (JST)
Subject: [ruby-changes:40214] nobu:r52295 (trunk): proc.c: remove rb_block_clear_env_self

nobu	2015-10-27 12:49:18 +0900 (Tue, 27 Oct 2015)

  New Revision: 52295

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52295

  Log:
    proc.c: remove rb_block_clear_env_self
    
    * proc.c (rb_block_clear_env_self): removed as deprecated at
      r52129.

  Modified files:
    trunk/internal.h
    trunk/proc.c
Index: proc.c
===================================================================
--- proc.c	(revision 52294)
+++ proc.c	(revision 52295)
@@ -694,17 +694,6 @@ rb_block_lambda(void) https://github.com/ruby/ruby/blob/trunk/proc.c#L694
     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:
Index: internal.h
===================================================================
--- internal.h	(revision 52294)
+++ internal.h	(revision 52295)
@@ -996,7 +996,6 @@ ID rb_id_attrget(ID id); https://github.com/ruby/ruby/blob/trunk/internal.h#L996
 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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]