Mercurial > hg > octave-lyh
changeset 16299:c40a8873c2e7
eliminate some unused variables
* lex.ll (\], \}, \", "'"): Eliminate unused variables.
* pt-array-list.cc (tree_array_list::dup): Omit unused argument names
from function definition.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 13 Mar 2013 15:40:03 -0400 |
parents | faaf60aa457c |
children | 23c5f90f92cd |
files | libinterp/parse-tree/lex.ll libinterp/parse-tree/pt-array-list.cc |
diffstat | 2 files changed, 4 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/parse-tree/lex.ll +++ b/libinterp/parse-tree/lex.ll @@ -331,7 +331,7 @@ curr_lexer->looking_for_object_index = true; curr_lexer->at_beginning_of_statement = false; - int tok_to_return = curr_lexer->handle_close_bracket (']'); + curr_lexer->handle_close_bracket (']'); return curr_lexer->count_token (']'); } @@ -348,7 +348,7 @@ curr_lexer->looking_for_object_index = true; curr_lexer->at_beginning_of_statement = false; - int tok_to_return = curr_lexer->handle_close_bracket ('}'); + curr_lexer->handle_close_bracket ('}'); return curr_lexer->count_token ('}'); } @@ -762,8 +762,6 @@ { int tok = curr_lexer->previous_token_value (); - bool transpose = false; - if (curr_lexer->whitespace_is_significant ()) { if (curr_lexer->space_follows_previous_token ()) @@ -830,8 +828,6 @@ { int tok = curr_lexer->previous_token_value (); - bool transpose = false; - if (curr_lexer->whitespace_is_significant ()) { if (curr_lexer->space_follows_previous_token ())
--- a/libinterp/parse-tree/pt-array-list.cc +++ b/libinterp/parse-tree/pt-array-list.cc @@ -93,8 +93,8 @@ } tree_expression * -tree_array_list::dup (symbol_table::scope_id scope, - symbol_table::context_id context) const +tree_array_list::dup (symbol_table::scope_id, + symbol_table::context_id) const { panic_impossible (); return 0;