changeset 410:95c6ad0be828

Delete unused boost::python::numeric includes and initialization * oct-py-init.cc (pytave::py_init): Remove unused initialization of boost::python::numeric. * pycall.cc, pyeval.cc, pyexec.cc, python_to_octave.cc: Remove "#include <boost/python/numeric.hpp>".
author Mike Miller <mtmiller@octave.org>
date Tue, 02 May 2017 17:40:01 -0700
parents b9b8790d1082
children 3613ffbd52b2
files oct-py-init.cc pycall.cc pyeval.cc pyexec.cc python_to_octave.cc
diffstat 5 files changed, 1 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/oct-py-init.cc	Tue May 02 17:44:02 2017 -0700
+++ b/oct-py-init.cc	Tue May 02 17:40:01 2017 -0700
@@ -53,9 +53,7 @@
     if (! is_initialized)
       PySys_SetArgvEx (1, sys_argv, 0);
 
-    // FIXME: these are only needed for Boost.Python implicit conversion
-    // of Octave arrays to NumPy arrays
-    boost::python::numeric::array::set_module_and_type ("numpy", "ndarray");
+    // FIXME: this is needed for use of NumPy array object C API
     _import_array ();
   }
 
--- a/pycall.cc	Tue May 02 17:44:02 2017 -0700
+++ b/pycall.cc	Tue May 02 17:40:01 2017 -0700
@@ -25,7 +25,6 @@
 #endif
 
 #include <boost/python.hpp>
-#include <boost/python/numeric.hpp>
 
 #include <octave/oct.h>
 #include <octave/parse.h>
--- a/pyeval.cc	Tue May 02 17:44:02 2017 -0700
+++ b/pyeval.cc	Tue May 02 17:40:01 2017 -0700
@@ -26,7 +26,6 @@
 
 #include <dlfcn.h>
 #include <boost/python.hpp>
-#include <boost/python/numeric.hpp>
 
 #include <oct.h>
 #include <octave/parse.h>
--- a/pyexec.cc	Tue May 02 17:44:02 2017 -0700
+++ b/pyexec.cc	Tue May 02 17:40:01 2017 -0700
@@ -26,7 +26,6 @@
 
 #include <dlfcn.h>
 #include <boost/python.hpp>
-#include <boost/python/numeric.hpp>
 
 #include <oct.h>
 
--- a/python_to_octave.cc	Tue May 02 17:44:02 2017 -0700
+++ b/python_to_octave.cc	Tue May 02 17:40:01 2017 -0700
@@ -28,7 +28,6 @@
 
 #include <iostream>
 #include <boost/python.hpp>
-#include <boost/python/numeric.hpp>
 #include <boost/type_traits/integral_constant.hpp>
 
 #include <octave/oct.h>