diff options
author | Allan Haldane <allan.haldane@gmail.com> | 2018-06-12 12:00:42 -0400 |
---|---|---|
committer | Allan Haldane <allan.haldane@gmail.com> | 2018-06-12 12:00:42 -0400 |
commit | 1a76f88622f9674a85b9fb73ddde6fb6511890b4 (patch) | |
tree | 1166f398eae87afd2d86a11ea7982a3b7ba96513 | |
parent | 2f381fedddfec79f1c059c1b1ecc466593ecd691 (diff) | |
download | numpy-1a76f88622f9674a85b9fb73ddde6fb6511890b4.tar.gz |
MAINT: remove unused "npy_import"
-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 |