# HG changeset patch # User Rik # Date 1362504991 28800 # Node ID 5bcae3970d9d7970c0d24b34ef922e4d6de064d7 # Parent b52d2f9294b605ae08e19c6c3be647725a68a0ef 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. diff -r b52d2f9294b6 -r 5bcae3970d9d libinterp/interpfcn/oct-hist.cc --- a/libinterp/interpfcn/oct-hist.cc Tue Mar 05 10:19:51 2013 -0500 +++ b/libinterp/interpfcn/oct-hist.cc Tue Mar 05 09:36:31 2013 -0800 @@ -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;