Mercurial > hg > octave-nkf
changeset 16196:5bcae3970d9d
oct-hist.cc: Stop unused function declaration warning.
* libinterp/interpfcn/oct-hist.cc: Comment out function edit_history_repl_hist.
Do not delete it until memory leak in edit_history has been fixed completely.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 05 Mar 2013 09:36:31 -0800 |
parents | b52d2f9294b6 |
children | 576daea679fe |
files | libinterp/interpfcn/oct-hist.cc |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/interpfcn/oct-hist.cc +++ b/libinterp/interpfcn/oct-hist.cc @@ -299,6 +299,11 @@ // appear in the history list. This way you can do 'run_history' to // your heart's content. +// FIXME: Don't delete this block of code until memory +// leak in edit_history has been plugged and +// it is clear that this code can be removed. +// See additional FIXME in do_edit_history. +/* static void edit_history_repl_hist (const std::string& command) { @@ -329,6 +334,7 @@ } } } +*/ static void edit_history_add_hist (const std::string& line) @@ -532,8 +538,7 @@ // FIXME: Don't delete this block of code until memory // leak in edit_history has been plugged and // it is clear that this code can be removed. - // Command 'edit history' has already been removed in - // mk_tmp_hist_file () + // Command 'edit history' has already been removed in mk_tmp_hist_file () //if (first) // { // first = 0;