summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-17 12:32:53 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-17 12:32:53 +0900
commit725739d65bf2a3369467f3b8ef9f2a0a125a4084 (patch)
treee3ec692376d019c0a58e0ca6a387e4a48ce9f452 /test/ruby
parent7b3a531fffcac5ba09edd050feccd9149205cd7e (diff)
Remove no longer used variable
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_gc.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/test/ruby/test_gc.rb b/test/ruby/test_gc.rb
index 2a7c1b507f..0f4a13211e 100644
--- a/test/ruby/test_gc.rb
+++ b/test/ruby/test_gc.rb
@@ -257,7 +257,6 @@ class TestGc < Test::Unit::TestCase
assert_nil GC.latest_gc_info(:need_major_by)
# allocate objects until need_major_by is set or major GC happens
- major_count = GC.stat(:major_gc_count)
objects = []
while GC.latest_gc_info(:need_major_by).nil?
objects.append(100.times.map { '*' })