Mercurial > pytave
diff octave_to_python.cc @ 392:09a1acb81d8b
Delete legacy code no longer used in project
* configure.ac: Drop checks for headers and functions no longer needed.
* exceptions.cc, exceptions.h: Delete pytave::init_exceptions and related
methods and properties for registering exceptions with Boost.Python runtime.
* octave_to_python.cc, octave_to_python.h (pytave::octlist_to_pytuple): Delete.
* python_to_octave.cc, python_to_octave.h (pytave::pytuple_to_octlist): Delete.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Mon, 03 Apr 2017 13:31:00 -0700 |
parents | b0677c492655 |
children | 692cecebc71f |
line wrap: on
line diff
--- a/octave_to_python.cc Mon Apr 03 12:25:03 2017 -0700 +++ b/octave_to_python.cc Mon Apr 03 13:31:00 2017 -0700 @@ -202,20 +202,4 @@ throw value_convert_exception ( "Conversion from Octave value not implemented"); } - - void octlist_to_pytuple (boost::python::tuple& python_tuple, - const octave_value_list& octave_list) - { - boost::python::list seq; - int length = octave_list.length (); - - for (int i = 0; i < length; i++) - { - boost::python::object py_object; - octvalue_to_pyobj (py_object, octave_list(i)); - seq.append (py_object); - } - - python_tuple = tuple (seq); - } }