summaryrefslogtreecommitdiff
path: root/mjit_c.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2022-11-27 22:23:35 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2022-11-27 22:47:46 -0800
commit2c1c0d3df033da6745aa0f828a704bb46a535fbc (patch)
tree3fe85f3ef967e2f041141e099881d49a1e7d21ea /mjit_c.rb
parent87e7b640ebb6002236e601d09347850fab5858df (diff)
MJIT: Get rid of C.fprintf
Faster code generation and cleaner code.
Diffstat (limited to 'mjit_c.rb')
-rw-r--r--mjit_c.rb8
1 files changed, 0 insertions, 8 deletions
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 ###