Verified Commit 4da428e2 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

core: remove useless function

parent 95af56bf
......@@ -44,15 +44,12 @@ namespace eigenpy
EIGENPY_DLLEXPORT int call_PyArray_ObjectType(PyObject *, int);
EIGENPY_DLLEXPORT PyTypeObject * getPyArrayType();
EIGENPY_DLLEXPORT int call_PyArray_TypeNumFromName(const std::string & name);
}
#else
#define call_PyArray_SimpleNew PyArray_SimpleNew
#define call_PyArray_New(py_type_ptr,nd,shape,np_type,data_ptr,options) \
PyArray_New(py_type_ptr,nd,shape,np_type,NULL,data_ptr,0,options,NULL)
#define getPyArrayType() &PyArray_Type
#define call_PyArray_TypeNumFromName(name) PyArray_TypeNumFromName(name.c_str())
#endif
#endif // ifndef __eigenpy_numpy_hpp__
......@@ -39,10 +39,5 @@ namespace eigenpy
PyTypeObject * getPyArrayType() { return &PyArray_Type; }
int call_PyArray_TypeNumFromName(const std::string & name)
{
return PyArray_TypeNumFromName(name.c_str());
}
#endif
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment