Remove unused (and a few almost-unused) functions in the XPath classes.

Bug 88612. r=peterv, sr=jst


git-svn-id: svn://10.0.0.236/trunk@98462 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
sicking%bigfoot.com
2001-07-02 20:11:05 +00:00
parent 1c0b5137b5
commit f003279337
33 changed files with 119 additions and 814 deletions

View File

@@ -21,14 +21,14 @@
* Keith Visco, kvisco@ziplink.net
* -- original author.
*
* $Id: StringFunctionCall.cpp,v 1.11 2001-07-02 09:24:39 peterv%netscape.com Exp $
* $Id: StringFunctionCall.cpp,v 1.12 2001-07-02 20:11:05 sicking%bigfoot.com Exp $
*/
/**
* StringFunctionCall
* A representation of the XPath String funtions
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</A>
* @version $Revision: 1.11 $ $Date: 2001-07-02 09:24:39 $
* @version $Revision: 1.12 $ $Date: 2001-07-02 20:11:05 $
**/
#include "FunctionLib.h"
@@ -36,14 +36,6 @@
#include "XMLDOMUtils.h"
#include <math.h>
/**
* Creates a default StringFunctionCall. The string() function
* is the default
**/
StringFunctionCall::StringFunctionCall() : FunctionCall(XPathNames::STRING_FN) {
type = STRING;
} //-- StringFunctionCall
/**
* Creates a StringFunctionCall of the given type
**/
@@ -51,31 +43,31 @@ StringFunctionCall::StringFunctionCall(short type) : FunctionCall() {
this->type = type;
switch ( type ) {
case CONCAT:
FunctionCall::setName(XPathNames::CONCAT_FN);
name = XPathNames::CONCAT_FN;
break;
case CONTAINS:
FunctionCall::setName(XPathNames::CONTAINS_FN);
name = XPathNames::CONTAINS_FN;
break;
case STARTS_WITH:
FunctionCall::setName(XPathNames::STARTS_WITH_FN);
name = XPathNames::STARTS_WITH_FN;
break;
case STRING_LENGTH:
FunctionCall::setName(XPathNames::STRING_LENGTH_FN);
name = XPathNames::STRING_LENGTH_FN;
break;
case SUBSTRING:
FunctionCall::setName(XPathNames::SUBSTRING_FN);
name = XPathNames::SUBSTRING_FN;
break;
case SUBSTRING_AFTER:
FunctionCall::setName(XPathNames::SUBSTRING_AFTER_FN);
name = XPathNames::SUBSTRING_AFTER_FN;
break;
case SUBSTRING_BEFORE:
FunctionCall::setName(XPathNames::SUBSTRING_BEFORE_FN);
name = XPathNames::SUBSTRING_BEFORE_FN;
break;
case TRANSLATE:
FunctionCall::setName(XPathNames::TRANSLATE_FN);
name = XPathNames::TRANSLATE_FN;
break;
default:
FunctionCall::setName(XPathNames::STRING_FN);
name = XPathNames::STRING_FN;
break;
}
} //-- StringFunctionCall