From 2c1c0d3df033da6745aa0f828a704bb46a535fbc Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Sun, 27 Nov 2022 22:23:35 -0800 Subject: MJIT: Get rid of C.fprintf Faster code generation and cleaner code. --- mjit_c.rb | 8 -------- 1 file changed, 8 deletions(-) (limited to 'mjit_c.rb') diff --git a/mjit_c.rb b/mjit_c.rb index c240a5ec4b..5ccc40aaf9 100644 --- a/mjit_c.rb +++ b/mjit_c.rb @@ -114,14 +114,6 @@ module RubyVM::MJIT iseq_addr = Primitive.cexpr! 'PTR2NUM((VALUE)rb_iseqw_to_iseq(iseqw))' rb_iseq_t.new(iseq_addr) end - - # TODO: remove this after migration - def fprintf(f, str) - Primitive.cstmt! %{ - fprintf((FILE *)NUM2PTR(f), "%s", RSTRING_PTR(str)); - return Qnil; - } - end end ### MJIT bindgen begin ### -- cgit v1.2.3