# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1349440076 14400 # Node ID dbc6b6b18286513ace738688c43dcc3db2799071 # Parent 720a3bd764927c38abeb5598dd30f8dcfb87e0b5 remove useless initialize_pathsearch function * octave.cc (initialize_pathsearch): Delete. (octave_initialize_interpreter): Remove call to it. diff -r 720a3bd76492 -r dbc6b6b18286 libinterp/octave.cc --- a/libinterp/octave.cc Thu Oct 04 11:04:34 2012 -0700 +++ b/libinterp/octave.cc Fri Oct 05 08:27:56 2012 -0400 @@ -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