diff --git a/ruby/sfml-system/system/Vector2.cpp b/ruby/sfml-system/system/Vector2.cpp index 9cb96a2ca..fdbb73a09 100644 --- a/ruby/sfml-system/system/Vector2.cpp +++ b/ruby/sfml-system/system/Vector2.cpp @@ -241,18 +241,10 @@ static VALUE Vector2_Initialize( VALUE self, VALUE someArgs ) return self; } -VALUE Vector2_New( int anArgCount, VALUE * someArgs, VALUE aKlass ) -{ - return rb_call_super( anArgCount, someArgs ); -} - void Init_Vector2( void ) { globalVector2Class = rb_define_class_under( GetNamespace(), "Vector2", rb_cObject ); - // Class methods - rb_define_singleton_method( globalVector2Class, "new", FUNCPTR( Vector2_New ), -1 ); - // Instance methods rb_define_method( globalVector2Class, "initialize", FUNCPTR( Vector2_Initialize ), -2 ); rb_define_method( globalVector2Class, "eql?", FUNCPTR( Vector2_Initialize ), 1 ); diff --git a/ruby/sfml-system/system/Vector3.cpp b/ruby/sfml-system/system/Vector3.cpp index 0778c76d7..64d3fa598 100644 --- a/ruby/sfml-system/system/Vector3.cpp +++ b/ruby/sfml-system/system/Vector3.cpp @@ -267,18 +267,10 @@ static VALUE Vector3_Initialize( VALUE self, VALUE someArgs ) return self; } -VALUE Vector3_New( int anArgCount, VALUE * someArgs, VALUE aKlass ) -{ - return rb_call_super( anArgCount, someArgs ); -} - void Init_Vector3( void ) { globalVector3Class = rb_define_class_under( GetNamespace(), "Vector3", rb_cObject ); - // Class methods - rb_define_singleton_method( globalVector3Class, "new", FUNCPTR( Vector3_New ), -1 ); - // Instance methods rb_define_method( globalVector3Class, "initialize", FUNCPTR( Vector3_Initialize ), -2 ); rb_define_method( globalVector3Class, "eql?", FUNCPTR( Vector3_Initialize ), 1 );