Mercurial > jwe > octave
changeset 19620:a1d172bfcb2f gui-release
eliminate some unused variable and typedef warnings
* pr-output.cc, profiler.cc, ov-base-diag.cc, ov-perm.cc: Eliminate
unused variables and typedefs.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 23 Jan 2015 16:09:35 -0500 |
parents | 844448ae53f3 |
children | af0399a5aae0 |
files | libinterp/corefcn/pr-output.cc libinterp/corefcn/profiler.cc libinterp/octave-value/ov-base-diag.cc libinterp/octave-value/ov-perm.cc |
diffstat | 4 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/pr-output.cc Fri Jan 23 15:23:09 2015 -0500 +++ b/libinterp/corefcn/pr-output.cc Fri Jan 23 16:09:35 2015 -0500 @@ -3402,8 +3402,7 @@ } void -octave_print_internal (std::ostream&, const octave_value&, - bool pr_as_read_syntax) +octave_print_internal (std::ostream&, const octave_value&, bool) { panic_impossible (); }
--- a/libinterp/corefcn/profiler.cc Fri Jan 23 15:23:09 2015 -0500 +++ b/libinterp/corefcn/profiler.cc Fri Jan 23 16:09:35 2015 -0500 @@ -84,7 +84,7 @@ } profile_data_accumulator::tree_node* -profile_data_accumulator::tree_node::exit (octave_idx_type fcn) +profile_data_accumulator::tree_node::exit (octave_idx_type /* fcn */) { // FIXME: These assert statements don't make sense if profile() is called // from within a function hierarchy to begin with. See bug #39587.
--- a/libinterp/octave-value/ov-base-diag.cc Fri Jan 23 15:23:09 2015 -0500 +++ b/libinterp/octave-value/ov-base-diag.cc Fri Jan 23 16:09:35 2015 -0500 @@ -100,7 +100,6 @@ bool resize_ok) { octave_value retval; - typedef typename DMT::element_type el_type; if (idx.length () == 2 && ! resize_ok) {
--- a/libinterp/octave-value/ov-perm.cc Fri Jan 23 15:23:09 2015 -0500 +++ b/libinterp/octave-value/ov-perm.cc Fri Jan 23 16:09:35 2015 -0500 @@ -260,8 +260,6 @@ bool octave_perm_matrix::save_ascii (std::ostream& os) { - typedef octave_int<octave_idx_type> idx_int_type; - os << "# size: " << matrix.rows () << "\n"; os << "# orient: " << (matrix.is_col_perm () ? 'c' : 'r') << '\n'; @@ -277,7 +275,6 @@ bool octave_perm_matrix::load_ascii (std::istream& is) { - typedef octave_int<octave_idx_type> idx_int_type; octave_idx_type n; bool success = true; char orient;