Mercurial > hg > octave-nkf
changeset 15490:dbc6b6b18286
remove useless initialize_pathsearch function
* octave.cc (initialize_pathsearch): Delete.
(octave_initialize_interpreter): Remove call to it.
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Fri, 05 Oct 2012 08:27:56 -0400 |
parents | 720a3bd76492 |
children | c9844b82945f |
files | libinterp/octave.cc |
diffstat | 1 files changed, 0 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave.cc +++ b/libinterp/octave.cc @@ -43,7 +43,6 @@ #include "file-stat.h" #include "lo-error.h" #include "oct-env.h" -#include "pathsearch.h" #include "str-vec.h" #include "builtins.h" @@ -252,24 +251,6 @@ } } -static void -initialize_pathsearch (void) -{ - // This may seem odd, but doing it this way means that we don't have - // to modify the kpathsea library... - - std::string odb = octave_env::getenv ("OCTAVE_DB_PATH"); - - // For backward compatibility. - - if (odb.empty ()) - odb = octave_env::getenv ("OCTAVE_DB_DIR"); - - if (odb.empty ()) - odb = Vdata_dir + file_ops::dir_sep_str () + "octave:" - + Vlibexec_dir + file_ops::dir_sep_str () + "octave"; -} - DEFUN (__version_info__, args, , "-*- texinfo -*-\n\ @deftypefn {Built-in Function} {retval =} __version_info__ (@var{name}, @var{version}, @var{release}, @var{date})\n\ @@ -893,8 +874,6 @@ initialize_default_warning_state (); - initialize_pathsearch (); - if (! embedded) install_signal_handlers (); else