summaryrefslogtreecommitdiff
path: root/internal/imemo.h
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2025-01-06 16:13:43 -0500
committerPeter Zhu <[email protected]>2025-01-07 11:01:08 -0500
commitd0f9f3e2c6eb074aa94f1460cce5a24c2415495f (patch)
treee84ffdb871e741e170d808d6d79fbc001ca46353 /internal/imemo.h
parentb9d29912dd03d0858187cc4770c76152add0f3f8 (diff)
Remove IMEMO_DEBUG
The code path hasn't compiled for almost a year, since 330830dd1a44b6e497250a14d93efae6fa363f82, so probably nobody uses it.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12519
Diffstat (limited to 'internal/imemo.h')
-rw-r--r--internal/imemo.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/imemo.h b/internal/imemo.h
index cb0a528518..9a7b7ab219 100644
--- a/internal/imemo.h
+++ b/internal/imemo.h
@@ -14,10 +14,6 @@
#include "ruby/internal/stdbool.h" /* for bool */
#include "ruby/ruby.h" /* for rb_block_call_func_t */
-#ifndef IMEMO_DEBUG
-# define IMEMO_DEBUG 0
-#endif
-
#define IMEMO_MASK 0x0f
/* FL_USER0 to FL_USER3 is for type */
@@ -156,12 +152,7 @@ void rb_cc_table_free(VALUE klass);
void rb_imemo_free(VALUE obj);
RUBY_SYMBOL_EXPORT_BEGIN
-#if IMEMO_DEBUG
-VALUE rb_imemo_new_debug(enum imemo_type type, VALUE v0, const char *file, int line);
-#define rb_imemo_new(type, v1, v2, v3, v0) rb_imemo_new_debug(type, v1, v2, v3, v0, __FILE__, __LINE__)
-#else
VALUE rb_imemo_new(enum imemo_type type, VALUE v0);
-#endif
const char *rb_imemo_name(enum imemo_type type);
RUBY_SYMBOL_EXPORT_END