changeset 18927:09eb8a2ddb02

eliminate some unused parameter warnings in parser functions * parse.in.yy, parse.h (octave_base_parser::make_superclass_ref, octave_base_parser::make_meta_class_query): Eliminate unused line and column number parameters.
author John W. Eaton <jwe@octave.org>
date Wed, 16 Jul 2014 19:55:30 -0400
parents cc8aaf9c9e33
children 161ebb78ac1b
files libinterp/parse-tree/oct-parse.in.yy libinterp/parse-tree/parse.h
diffstat 2 files changed, 6 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.in.yy	Wed Jul 16 18:38:55 2014 -0400
+++ b/libinterp/parse-tree/oct-parse.in.yy	Wed Jul 16 19:55:30 2014 -0400
@@ -488,9 +488,7 @@
                     std::string method_nm = $1->superclass_method_name ();
                     std::string class_nm = $1->superclass_class_name ();
 
-                    $$ = parser.make_superclass_ref
-                                       (method_nm, class_nm,
-                                        $1->line (), $1->column ());
+                    $$ = parser.make_superclass_ref (method_nm, class_nm);
                   }
                 ;
 
@@ -498,8 +496,7 @@
                   {
                     std::string class_nm = $1->text ();
 
-                    $$ = parser.make_meta_class_query (class_nm, $1->line (),
-                                                       $1->column ());
+                    $$ = parser.make_meta_class_query (class_nm);
                   }
                 ;
 
@@ -3115,8 +3112,7 @@
 
 tree_funcall *
 octave_base_parser::make_superclass_ref (const std::string& method_nm,
-                                         const std::string& class_nm,
-                                         int l, int c)
+                                         const std::string& class_nm)
 {
   octave_value_list args;
 
@@ -3130,8 +3126,7 @@
 }
 
 tree_funcall *
-octave_base_parser::make_meta_class_query (const std::string& class_nm,
-                                           int l, int c)
+octave_base_parser::make_meta_class_query (const std::string& class_nm)
 {
   octave_value_list args;
 
--- a/libinterp/parse-tree/parse.h	Wed Jul 16 18:38:55 2014 -0400
+++ b/libinterp/parse-tree/parse.h	Wed Jul 16 19:55:30 2014 -0400
@@ -300,12 +300,10 @@
 
   tree_funcall *
   make_superclass_ref (const std::string& method_nm,
-                       const std::string& class_nm,
-                       int l, int c);
+                       const std::string& class_nm);
 
   tree_funcall *
-  make_meta_class_query (const std::string& class_nm,
-                         int l, int c);
+  make_meta_class_query (const std::string& class_nm);
 
   tree_classdef *
   make_classdef (token *tok_val, tree_classdef_attribute_list *a,