From 0d2581a4df67f7e7caca1a3f1323e6aafa4812c7 Mon Sep 17 00:00:00 2001 From: groogy Date: Wed, 3 Nov 2010 20:02:08 +0000 Subject: [PATCH] Removed an unnecessary definition of the new function. git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1603 4e206d99-4929-0410-ac5d-dfc041789085 --- ruby/sfml-system/system/Vector2.cpp | 8 -------- ruby/sfml-system/system/Vector3.cpp | 8 -------- 2 files changed, 16 deletions(-) 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 );