diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-06-12 13:00:19 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-12 13:00:19 -0600 |
commit | 512acf2d1e8ba6f69a9cc6410d724606a8c41770 (patch) | |
tree | 1166f398eae87afd2d86a11ea7982a3b7ba96513 | |
parent | 2f381fedddfec79f1c059c1b1ecc466593ecd691 (diff) | |
parent | 1a76f88622f9674a85b9fb73ddde6fb6511890b4 (diff) | |
download | numpy-512acf2d1e8ba6f69a9cc6410d724606a8c41770.tar.gz |
Merge pull request #11314 from ahaldane/remove_npy_import
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 |