From 13bd617ea6fdf72467c593639cf33312a06c330c Mon Sep 17 00:00:00 2001 From: Jemma Issroff Date: Fri, 21 Oct 2022 12:58:51 -0400 Subject: Remove unused class serial Before object shapes, we were using class serial to invalidate inline caches. Now that we use shape_id for inline cache keys, the class serial is unnecessary. Co-Authored-By: Aaron Patterson --- test/ruby/test_rubyvm.rb | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/ruby/test_rubyvm.rb') diff --git a/test/ruby/test_rubyvm.rb b/test/ruby/test_rubyvm.rb index d0b7cba341..d729aa5af8 100644 --- a/test/ruby/test_rubyvm.rb +++ b/test/ruby/test_rubyvm.rb @@ -4,11 +4,9 @@ require 'test/unit' class TestRubyVM < Test::Unit::TestCase def test_stat assert_kind_of Hash, RubyVM.stat - assert_kind_of Integer, RubyVM.stat[:class_serial] RubyVM.stat(stat = {}) assert_not_empty stat - assert_equal stat[:class_serial], RubyVM.stat(:class_serial) end def test_stat_unknown -- cgit v1.2.3