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

ruby-changes:72619

From: Peter <ko1@a...>
Date: Thu, 21 Jul 2022 22:03:01 +0900 (JST)
Subject: [ruby-changes:72619] 4798a4fec2 (master): Remove unused internal macros in rarray.h

https://git.ruby-lang.org/ruby.git/commit/?id=4798a4fec2

From 4798a4fec213ce8a73a2d0d1c4ba879fb216ca3a Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Wed, 20 Jul 2022 14:49:16 -0400
Subject: Remove unused internal macros in rarray.h

---
 include/ruby/internal/core/rarray.h | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/include/ruby/internal/core/rarray.h b/include/ruby/internal/core/rarray.h
index ea37c8dfad..c3bb40be25 100644
--- a/include/ruby/internal/core/rarray.h
+++ b/include/ruby/internal/core/rarray.h
@@ -482,14 +482,6 @@ rb_array_ptr_use_end(VALUE a, https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/core/rarray.h#L482
     rb_array_ptr_use_end(rbimpl_ary, (flag));                \
 } while (0)
 
-/**
- * @private
- *
- * This is an  implementation detail of #RARRAY_PTR_USE.  People do  not use it
- * directly.
- */
-#define RARRAY_PTR_USE_START(a) rb_array_ptr_use_start(a, 0)
-
 /**
  * @private
  *
@@ -526,22 +518,6 @@ rb_array_ptr_use_end(VALUE a, https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/core/rarray.h#L518
 #define RARRAY_PTR_USE(ary, ptr_name, expr)     \
     RBIMPL_RARRAY_STMT(0, ary, ptr_name, expr)
 
-/**
- * @private
- *
- * This is  an implementation  detail of #RARRAY_PTR_USE_TRANSIENT.   People do
- * not use it directly.
- */
-#define RARRAY_PTR_USE_START_TRANSIENT(a) rb_array_ptr_use_start(a, 1)
-
-/**
- * @private
- *
- * This is  an implementation  detail of #RARRAY_PTR_USE_TRANSIENT.   People do
- * not use it directly.
- */
-#define RARRAY_PTR_USE_END_TRANSIENT(a) rb_array_ptr_use_end(a, 1)
-
 /**
  * Identical to #RARRAY_PTR_USE, except the pointer can be a transient one.
  *
-- 
cgit v1.2.1


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

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