You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@locus.apache.org on 2000/07/10 03:06:13 UTC
cvs commit: xml-xalan/c/src/TestXPath TestXPath.cpp
dbertoni 00/07/09 18:06:13
Modified: c/src/TestXPath TestXPath.cpp
Log:
Cleaned up some old test code.
Revision Changes Path
1.10 +1 -15 xml-xalan/c/src/TestXPath/TestXPath.cpp
Index: TestXPath.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/TestXPath/TestXPath.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- TestXPath.cpp 2000/05/12 18:17:16 1.9
+++ TestXPath.cpp 2000/07/10 01:06:13 1.10
@@ -311,17 +311,7 @@
}
-template<class Source, class Target>
-const Target*
-XalanStaticCast(
- const Source* theSource,
- const Target* /* theTarget */)
-{
- return static_cast<const Target*>(theSource);
-}
-
-
XalanDOMString
GetAttributeFromNode(
XalanNode* theNode,
@@ -332,13 +322,9 @@
if (theNode->getNodeType() == XalanNode::ELEMENT_NODE)
{
const XalanElement* theElement =
- XalanStaticCast(theNode, theElement);
+ static_cast<const XalanElement*>(theNode);
theResult = theElement->getAttribute(theAttributeName);
-
- if (0 == theElement)
- {
- }
}
return theResult;