From 950ca72d13cc5798297e3a182bfa4584d0dcc714 Mon Sep 17 00:00:00 2001
From: Tinny Ng <tng@apache.org>
Date: Thu, 22 Aug 2002 15:42:10 +0000
Subject: [PATCH] Remove unused parameter variables in inline functions.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174166 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/util/regx/ModifierToken.hpp         |  2 +-
 src/xercesc/util/regx/ParenToken.hpp            |  2 +-
 src/xercesc/util/regx/Token.hpp                 | 16 ++++++++--------
 src/xercesc/validators/schema/SchemaGrammar.hpp |  9 ++++++---
 4 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/src/xercesc/util/regx/ModifierToken.hpp b/src/xercesc/util/regx/ModifierToken.hpp
index 4a6a47c72..ef041e777 100644
--- a/src/xercesc/util/regx/ModifierToken.hpp
+++ b/src/xercesc/util/regx/ModifierToken.hpp
@@ -116,7 +116,7 @@ inline int ModifierToken::getOptionsMask() const {
     return fOptionsMask;
 }
 
-inline Token* ModifierToken::getChild(const int index) const {
+inline Token* ModifierToken::getChild(const int) const {
 
     return fChild;
 }
diff --git a/src/xercesc/util/regx/ParenToken.hpp b/src/xercesc/util/regx/ParenToken.hpp
index dffca795a..04e0be091 100644
--- a/src/xercesc/util/regx/ParenToken.hpp
+++ b/src/xercesc/util/regx/ParenToken.hpp
@@ -111,7 +111,7 @@ inline int ParenToken::getNoParen() const {
     return fNoParen;
 }
 
-inline Token* ParenToken::getChild(const int index) const {
+inline Token* ParenToken::getChild(const int) const {
 
     return fChild;
 }
diff --git a/src/xercesc/util/regx/Token.hpp b/src/xercesc/util/regx/Token.hpp
index 174cb9b76..470200320 100644
--- a/src/xercesc/util/regx/Token.hpp
+++ b/src/xercesc/util/regx/Token.hpp
@@ -191,7 +191,7 @@ inline int Token::size() const {
 	return 0;
 }
 
-inline Token* Token::getChild(const int index) const {
+inline Token* Token::getChild(const int) const {
 
 	return 0;
 }
@@ -234,11 +234,11 @@ inline void Token::setTokenType(const unsigned short tokType) {
 	fTokenType = tokType;
 }
 
-inline void Token::setMax(const int maxVal) {
+inline void Token::setMax(const int) {
 	// ClosureToken
 }
 
-inline void Token::setMin(const int minVal) {
+inline void Token::setMin(const int) {
 	// ClosureToken
 }
 
@@ -250,7 +250,7 @@ inline bool Token::isSet(const int options, const unsigned int flag) {
 // ---------------------------------------------------------------------------
 //  Token: setter methods
 // ---------------------------------------------------------------------------
-inline void Token::addChild(Token* const child, TokenFactory* const tokFactory) {
+inline void Token::addChild(Token* const, TokenFactory* const) {
 
     ThrowXML(RuntimeException, XMLExcepts::Regex_NotSupported);
 }
@@ -258,12 +258,12 @@ inline void Token::addChild(Token* const child, TokenFactory* const tokFactory)
 // ---------------------------------------------------------------------------
 //  Token: Range manipulation methods
 // ---------------------------------------------------------------------------
-inline void Token::addRange(const XMLInt32 start, const XMLInt32 end) {
+inline void Token::addRange(const XMLInt32, const XMLInt32) {
 
     ThrowXML(RuntimeException, XMLExcepts::Regex_NotSupported);
 }
 
-inline void Token::mergeRanges(const Token *const tok) {
+inline void Token::mergeRanges(const Token *const) {
 
     ThrowXML(RuntimeException, XMLExcepts::Regex_NotSupported);
 }
@@ -278,12 +278,12 @@ inline void Token::compactRanges() {
     ThrowXML(RuntimeException, XMLExcepts::Regex_NotSupported);
 }
 
-inline void Token::subtractRanges(RangeToken* const tok) {
+inline void Token::subtractRanges(RangeToken* const) {
 
     ThrowXML(RuntimeException, XMLExcepts::Regex_NotSupported);
 }
 
-inline void Token::intersectRanges(RangeToken* const tok) {
+inline void Token::intersectRanges(RangeToken* const) {
 
     ThrowXML(RuntimeException, XMLExcepts::Regex_NotSupported);
 }
diff --git a/src/xercesc/validators/schema/SchemaGrammar.hpp b/src/xercesc/validators/schema/SchemaGrammar.hpp
index 5eed8a3c3..9c20a2ff4 100644
--- a/src/xercesc/validators/schema/SchemaGrammar.hpp
+++ b/src/xercesc/validators/schema/SchemaGrammar.hpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.4  2002/08/22 15:42:10  tng
+ * Remove unused parameter variables in inline functions.
+ *
  * Revision 1.3  2002/07/11 18:21:20  knoaman
  * Grammar caching/preparsing - initial implementation.
  *
@@ -462,7 +465,7 @@ inline const XMLCh* SchemaGrammar::getTargetNamespace() const {
 // Element Decl
 inline unsigned int SchemaGrammar::getElemId (const   unsigned int  uriId
                                               , const XMLCh* const    baseName
-                                              , const XMLCh* const    qName
+                                              , const XMLCh* const
                                               , unsigned int          scope ) const
 {
     //
@@ -482,7 +485,7 @@ inline unsigned int SchemaGrammar::getElemId (const   unsigned int  uriId
 
 inline const XMLElementDecl* SchemaGrammar::getElemDecl( const   unsigned int  uriId
                                               , const XMLCh* const    baseName
-                                              , const XMLCh* const    qName
+                                              , const XMLCh* const  
                                               , unsigned int          scope )   const
 {
     const SchemaElementDecl* decl = fElemDeclPool->getByKey(baseName, uriId, scope);
@@ -500,7 +503,7 @@ inline const XMLElementDecl* SchemaGrammar::getElemDecl( const   unsigned int  u
 
 inline XMLElementDecl* SchemaGrammar::getElemDecl (const   unsigned int  uriId
                                               , const XMLCh* const    baseName
-                                              , const XMLCh* const    qName
+                                              , const XMLCh* const  
                                               , unsigned int          scope )
 {
     SchemaElementDecl* decl = fElemDeclPool->getByKey(baseName, uriId, scope);
-- 
GitLab