# HG changeset patch # User John W. Eaton # Date 1422047375 18000 # Node ID a1d172bfcb2f9b9047bf1c95fb30d07e7eda2662 # Parent 844448ae53f3cd21653d6b56dfeb08a6ea9eba32 eliminate some unused variable and typedef warnings * pr-output.cc, profiler.cc, ov-base-diag.cc, ov-perm.cc: Eliminate unused variables and typedefs. diff -r 844448ae53f3 -r a1d172bfcb2f libinterp/corefcn/pr-output.cc --- 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 (); } diff -r 844448ae53f3 -r a1d172bfcb2f libinterp/corefcn/profiler.cc --- 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. diff -r 844448ae53f3 -r a1d172bfcb2f libinterp/octave-value/ov-base-diag.cc --- 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) { diff -r 844448ae53f3 -r a1d172bfcb2f libinterp/octave-value/ov-perm.cc --- 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 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 idx_int_type; octave_idx_type n; bool success = true; char orient;