summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-02-26 11:13:23 -0500
committerPeter Zhu <[email protected]>2024-02-26 14:34:24 -0500
commitc9b6cd4223ec21e8eea65babd2543c6fbca57890 (patch)
treec946eece478707c5c0eae3e09cf7a13f9845fe6c
parent34bad6d69f7a7fa10a4e5aa48a6895afc9aebf1e (diff)
Remove unused rb_objspace_each_objects_without_setup
-rw-r--r--gc.c6
-rw-r--r--internal/gc.h4
2 files changed, 0 insertions, 10 deletions
diff --git a/gc.c b/gc.c
index a2b8589e4b..68df409602 100644
--- a/gc.c
+++ b/gc.c
@@ -3738,12 +3738,6 @@ objspace_each_pages(rb_objspace_t *objspace, each_page_callback *callback, void
objspace_each_exec(protected, &each_obj_data);
}
-void
-rb_objspace_each_objects_without_setup(each_obj_callback *callback, void *data)
-{
- objspace_each_objects(&rb_objspace, callback, data, FALSE);
-}
-
struct os_each_struct {
size_t num;
VALUE of;
diff --git a/internal/gc.h b/internal/gc.h
index 89f566cf8d..a74ad52782 100644
--- a/internal/gc.h
+++ b/internal/gc.h
@@ -271,10 +271,6 @@ void rb_objspace_each_objects(
int (*callback)(void *start, void *end, size_t stride, void *data),
void *data);
-void rb_objspace_each_objects_without_setup(
- int (*callback)(void *, void *, size_t, void *),
- void *data);
-
size_t rb_gc_obj_slot_size(VALUE obj);
VALUE rb_gc_disable_no_rest(void);