diff options
author | Peter Zhu <[email protected]> | 2025-02-13 14:02:31 -0500 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2025-02-13 16:11:37 -0500 |
commit | e0cb069c0684bb8baf505a9d7a281d0ff8e1bf82 () | |
tree | 6e023e3494767489e108242b8ba50ceb09a401bb /st.c | |
parent | 31162bf4261b2e740f6e26f2c2f22c36d3556cf0 (diff) |
Remove dead rb_st_nth_key
Notes: Merged: https://.com/ruby/ruby/pull/12742
-rw-r--r-- | st.c | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -2309,20 +2309,6 @@ rb_hash_bulk_insert_into_st_table(long argc, const VALUE *argv, VALUE hash) st_insert_generic(tab, argc, argv, hash); } -// to iterate iv_index_tbl -st_data_t -rb_st_nth_key(st_table *tab, st_index_t index) -{ - if (LIKELY(tab->entries_start == 0 && - tab->num_entries == tab->entries_bound && - index < tab->num_entries)) { - return tab->entries[index].key; - } - else { - rb_bug("unreachable"); - } -} - void rb_st_compact_table(st_table *tab) { |