summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllan Haldane <allan.haldane@gmail.com>2018-06-12 12:00:42 -0400
committerAllan Haldane <allan.haldane@gmail.com>2018-06-12 12:00:42 -0400
commit1a76f88622f9674a85b9fb73ddde6fb6511890b4 (patch)
tree1166f398eae87afd2d86a11ea7982a3b7ba96513
parent2f381fedddfec79f1c059c1b1ecc466593ecd691 (diff)
downloadnumpy-1a76f88622f9674a85b9fb73ddde6fb6511890b4.tar.gz
MAINT: remove unused "npy_import"
-rw-r--r--numpy/core/src/private/npy_import.h14
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