diff libinterp/corefcn/interpreter.h @ 27507:2d537a089e5d

eliminate warn_for argument for source_file and parse_fcn_file functions * interpreter.h, interpreter.cc (interpreter::source_file, interpreter::parse_fcn_file): Eliminate warn_for argument. Change all uses. * pt-eval.h, pt-eval.cc (tree_evaluator::source_file): Eliminate warn_for argument. Change all uses.
author John W. Eaton <jwe@octave.org>
date Thu, 10 Oct 2019 16:50:58 -0400
parents 3fec8e9fa2aa
children fefc780b4e2e
line wrap: on
line diff
--- a/libinterp/corefcn/interpreter.h	Thu Oct 10 16:27:57 2019 -0400
+++ b/libinterp/corefcn/interpreter.h	Thu Oct 10 16:50:58 2019 -0400
@@ -348,8 +348,7 @@
 
     void source_file (const std::string& file_name,
                       const std::string& context = "",
-                      bool verbose = false, bool require_file = true,
-                      const std::string& warn_for = "");
+                      bool verbose = false, bool require_file = true);
 
     octave_value parse_fcn_file (const std::string& full_file,
                                  const std::string& file,
@@ -357,8 +356,7 @@
                                  const std::string& dispatch_type,
                                  const std::string& package_name,
                                  bool require_file, bool force_script,
-                                 bool autoload, bool relative_lookup,
-                                 const std::string& warn_for);
+                                 bool autoload, bool relative_lookup);
 
     bool at_top_level (void) const;