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:
@@ -24,14 +24,14 @@
|
||||
* Marina Mechtcheriakova, mmarina@mindspring.com
|
||||
* -- changed some behavoir to be more compliant with spec
|
||||
*
|
||||
* $Id: NodeSetFunctionCall.cpp,v 1.7 2001-06-26 14:09:10 peterv%netscape.com Exp $
|
||||
* $Id: NodeSetFunctionCall.cpp,v 1.8 2001-07-02 20:10:59 sicking%bigfoot.com Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
* NodeSetFunctionCall
|
||||
* A representation of the XPath NodeSet funtions
|
||||
* @author <A HREF="mailto:kvisco@ziplink.net">Keith Visco</a>
|
||||
* @version $Revision: 1.7 $ $Date: 2001-06-26 14:09:10 $
|
||||
* @version $Revision: 1.8 $ $Date: 2001-07-02 20:10:59 $
|
||||
**/
|
||||
|
||||
#include "FunctionLib.h"
|
||||
@@ -39,14 +39,6 @@
|
||||
#include "XMLDOMUtils.h"
|
||||
#include <math.h>
|
||||
|
||||
/**
|
||||
* Creates a default NodeSetFunctionCall. The Position function
|
||||
* is the default
|
||||
**/
|
||||
NodeSetFunctionCall::NodeSetFunctionCall() : FunctionCall(XPathNames::POSITION_FN) {
|
||||
type = POSITION;
|
||||
} //-- NodeSetFunctionCall
|
||||
|
||||
/**
|
||||
* Creates a NodeSetFunctionCall of the given type
|
||||
**/
|
||||
@@ -54,25 +46,25 @@ NodeSetFunctionCall::NodeSetFunctionCall(short type) : FunctionCall() {
|
||||
this->type = type;
|
||||
switch ( type ) {
|
||||
case COUNT :
|
||||
FunctionCall::setName(XPathNames::COUNT_FN);
|
||||
name = XPathNames::COUNT_FN;
|
||||
break;
|
||||
case ID :
|
||||
FunctionCall::setName(XPathNames::ID_FN);
|
||||
name = XPathNames::ID_FN;
|
||||
break;
|
||||
case LAST :
|
||||
FunctionCall::setName(XPathNames::LAST_FN);
|
||||
name = XPathNames::LAST_FN;
|
||||
break;
|
||||
case LOCAL_NAME:
|
||||
FunctionCall::setName(XPathNames::LOCAL_NAME_FN);
|
||||
name = XPathNames::LOCAL_NAME_FN;
|
||||
break;
|
||||
case NAME:
|
||||
FunctionCall::setName(XPathNames::NAME_FN);
|
||||
name = XPathNames::NAME_FN;
|
||||
break;
|
||||
case NAMESPACE_URI:
|
||||
FunctionCall::setName(XPathNames::NAMESPACE_URI_FN);
|
||||
name = XPathNames::NAMESPACE_URI_FN;
|
||||
break;
|
||||
default:
|
||||
FunctionCall::setName(XPathNames::POSITION_FN);
|
||||
name = XPathNames::POSITION_FN;
|
||||
break;
|
||||
}
|
||||
} //-- NodeSetFunctionCall
|
||||
|
||||
Reference in New Issue
Block a user