Remove Kernel.with_yjit class method

This commit is contained in:
Nobuyoshi Nakada 2024-11-26 18:33:54 +09:00 committed by Nobuyoshi Nakada
parent 9508cf86de
commit ad28f3a779
Notes: git 2024-11-26 10:25:48 +00:00

View File

@ -293,7 +293,7 @@ module Kernel
# Internal helper for built-in initializations to define methods only when YJIT is enabled.
# This method is removed in yjit_hook.rb.
def with_yjit(&block) # :nodoc:
private def with_yjit(&block) # :nodoc:
if defined?(RubyVM::YJIT)
RubyVM::YJIT.send(:add_yjit_hook, block)
end