Mercurial > octave
changeset 21526:b76d1de20f9a
Deprecate unused C++ functions oct_file_in_path, mex_file_in_path.
* utils.cc: Add note that functions were deprecated in 4.2, should be removed
in 4.6.
* utils.h (oct_file_in_path, mex_file_in_path): Add OCTAVE_DEPRECATED macro,
along with a string suggesting a replacement function, to the function
declaration.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 22 Mar 2016 14:36:15 -0700 |
parents | 50255c612915 |
children | ab8760b1245d |
files | libinterp/corefcn/utils.cc libinterp/corefcn/utils.h |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/utils.cc Tue Mar 22 14:25:35 2016 -0700 +++ b/libinterp/corefcn/utils.cc Tue Mar 22 14:36:15 2016 -0700 @@ -528,6 +528,7 @@ return retval; } +// Deprecated in 4.2, remove in 4.6. // See if there is a .oct file in the path. // If so, return the full path to the file. @@ -556,6 +557,7 @@ return retval; } +// Deprecated in 4.2, remove in 4.6. // See if there is a .mex file in the path. // If so, return the full path to the file.
--- a/libinterp/corefcn/utils.h Tue Mar 22 14:25:35 2016 -0700 +++ b/libinterp/corefcn/utils.h Tue Mar 22 14:36:15 2016 -0700 @@ -74,7 +74,11 @@ extern OCTINTERP_API std::string contents_file_in_path (const std::string&); extern OCTINTERP_API std::string fcn_file_in_path (const std::string&); + +OCTAVE_DEPRECATED ("use 'load_path::find_oct_file' instead") extern OCTINTERP_API std::string oct_file_in_path (const std::string&); + +OCTAVE_DEPRECATED ("use 'load_path::find_mex_file' instead") extern OCTINTERP_API std::string mex_file_in_path (const std::string&); extern OCTINTERP_API std::string do_string_escapes (const std::string& s);