diff options
-rw-r--r-- | numpy/core/src/private/npy_import.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/numpy/core/src/private/npy_import.h b/numpy/core/src/private/npy_import.h index e145a843e..221e1e645 100644 --- a/numpy/core/src/private/npy_import.h +++ b/numpy/core/src/private/npy_import.h @@ -29,18 +29,4 @@ npy_cache_import(const char *module, const char *attr, PyObject **cache) } } -NPY_INLINE static PyObject * -npy_import(const char *module, const char *attr) -{ - PyObject *mod = PyImport_ImportModule(module); - PyObject *ret = NULL; - - if (mod != NULL) { - ret = PyObject_GetAttrString(mod, attr); - } - Py_XDECREF(mod); - - return ret; -} - #endif |