diff --git a/libinterp/corefcn/error.cc b/libinterp/corefcn/error.cc --- a/libinterp/corefcn/error.cc +++ b/libinterp/corefcn/error.cc @@ -865,23 +865,9 @@ OCTAVE_NAMESPACE_BEGIN void error_system::throw_error (const std::string& err_type, const std::string& id, const std::string& message, - const std::list& stack_info_arg) + const std::list&) { - std::list stack_info = stack_info_arg; - - if (stack_info.empty ()) - { - tree_evaluator& tw = m_interpreter.get_evaluator (); - - stack_info = tw.backtrace_info (); - - // Print the error message only if it is different from the - // previous one; makes the output more concise and readable. - - stack_info.unique (); - } - - execution_exception ex (err_type, id, message, stack_info); + execution_exception ex (err_type, id, message); throw_error (ex); }