summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ext/ruby2d/ruby2d.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/ext/ruby2d/ruby2d.c b/ext/ruby2d/ruby2d.c
index 24c3857..888c053 100644
--- a/ext/ruby2d/ruby2d.c
+++ b/ext/ruby2d/ruby2d.c
@@ -153,18 +153,6 @@ double normalize_controller_axis(int val) {
/*
- * File#exists? for MRuby
- */
-#if MRUBY
-static R_VAL file_exists(mrb_state* mrb, R_VAL self) {
- mrb_value path;
- mrb_get_args(mrb, "o", &path);
- return S2D_FileExists(RSTRING_PTR(path)) ? R_TRUE : R_FALSE;
-}
-#endif
-
-
-/*
* Ruby2D::Triangle#ext_render
*/
#if MRUBY
@@ -1009,10 +997,6 @@ int main() {
// Load the Ruby 2D library
mrb_load_irep(mrb, ruby2d_lib);
- // Add missing MRuby classes, methods
- R_CLASS file_class = mrb_define_class(mrb, "File", mrb->object_class);
- mrb_define_class_method(mrb, file_class, "exists?", file_exists, r_args_req(1));
-
#else
/*
* Ruby C extension init