summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2009-06-03 02:24:29 +0000
committerCharles Harris <charlesr.harris@gmail.com>2009-06-03 02:24:29 +0000
commita6d3b8770ca9684ed342e7a4cf7d7af96a2bae1d (patch)
tree122397f8559c64b7f6c6e5acb4c75fb0645c2ff2 /numpy
parent805a2adce9cd6fce44474b3bff8a2566cc2268a5 (diff)
downloadnumpy-a6d3b8770ca9684ed342e7a4cf7d7af96a2bae1d.tar.gz
Remove unused reference to MultiArrayError.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/calculation.h6
-rw-r--r--numpy/lib/src/_compiled_base.c6
2 files changed, 3 insertions, 9 deletions
diff --git a/numpy/core/src/multiarray/calculation.h b/numpy/core/src/multiarray/calculation.h
index d2f5e6763..2cf69b7e4 100644
--- a/numpy/core/src/multiarray/calculation.h
+++ b/numpy/core/src/multiarray/calculation.h
@@ -1,12 +1,6 @@
#ifndef _NPY_CALCULATION_H_
#define _NPY_CALCULATION_H_
-#ifdef NPY_ENABLE_SEPARATE_COMPILATION
-extern NPY_NO_EXPORT PyObject *MultiArrayError;
-#else
-NPY_NO_EXPORT PyObject *MultiArrayError;
-#endif
-
NPY_NO_EXPORT PyObject*
PyArray_ArgMax(PyArrayObject* self, int axis, PyArrayObject *out);
diff --git a/numpy/lib/src/_compiled_base.c b/numpy/lib/src/_compiled_base.c
index b2f2817d9..16b30608b 100644
--- a/numpy/lib/src/_compiled_base.c
+++ b/numpy/lib/src/_compiled_base.c
@@ -920,7 +920,6 @@ define_types(void)
/* Initialization function for the module (*must* be called init<name>) */
PyMODINIT_FUNC init_compiled_base(void) {
- PyObject *err = PyString_FromString("numpy.lib.error");
PyObject *m, *d, *s;
/* Create the module and add the functions */
@@ -937,8 +936,9 @@ PyMODINIT_FUNC init_compiled_base(void) {
Py_DECREF(s);
/* Fixme; We might want to remove this error string from the dictionary */
- PyDict_SetItemString(d, "error", err);
- Py_DECREF(err);
+ s = PyString_FromString("numpy.lib.error");
+ PyDict_SetItemString(d, "error", s);
+ Py_DECREF(s);
/* define PyGetSetDescr_Type and PyMemberDescr_Type */