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/08/01 21:43:30 UTC
cvs commit: xml-xalan/c/src/XSLT XSLTEngineImpl.cpp XSLTEngineImpl.hpp
dbertoni 00/08/01 12:43:28
Modified: c/src/XSLT XSLTEngineImpl.cpp XSLTEngineImpl.hpp
Log:
Removed some unused extension handler code.
Revision Changes Path
1.53 +0 -67 xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp
Index: XSLTEngineImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTEngineImpl.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- XSLTEngineImpl.cpp 2000/07/28 22:02:21 1.52
+++ XSLTEngineImpl.cpp 2000/08/01 19:43:27 1.53
@@ -3188,73 +3188,6 @@
-void
-XSLTEngineImpl::registerExtensionHandlerByName(
- const XalanDOMString& /* classid */,
- const XalanDOMString& /* codetype */)
-{
-#if 1
- error("Xalan C++ does not support extensions at this time!");
-#else
- try
- {
- Class classObj = Class.forName(classid);
- try
- {
- Object[] args = new Object[1];
- Class[] argTypes = new Class[1];
- args[0] = codetype;
- argTypes[0] = codetype.getClass();
- Method m = classObj.getMethod ("register", argTypes);
- DispatcherFactory factory = (DispatcherFactory)m.invoke (0, args);
- if(0 != factory)
- {
- registerExtensionHandler(codetype, factory);
- }
- }
- catch(NoSuchMethodException& nsme)
- {
- warn("Failed to get registration method for extension handler: "+classid);
- }
- catch(InvocationTargetException& invocationTarget)
- {
- warn("Invocation Target Error when trying to register extension handler: "+codetype);
- }
- catch(IllegalAccessException& illegalAccess)
- {
- warn("Illegal Access Error when trying to register extension handler: "+codetype);
- }
- }
- catch(ClassNotFoundException& classNotFound)
- {
- warn("Class Not Found Error when trying to register extension handler: "+codetype);
- }
-#endif
-}
-
-
-
-void
-XSLTEngineImpl::registerExtensionHandler(
- const XalanDOMString& /* mimeType */,
- DispatcherFactory* /* factory */)
-{
-#if 1
- error("Xalan C++ does not support extensions at this time!");
-#else
- if(0 != m_diagnosticsPrintWriter)
- {
- diag(XalanDOMString("Registering dispatcher factory for: ") + mimeType);
- }
-
- m_dispatcherFactories.put(mimeType, factory);
-#endif
-}
-
-
-
-
-
// $$$ ToDo: This really belongs in DOMServices or DOMSupport()
XalanElement*
XSLTEngineImpl::findElementByAttribute(
1.41 +0 -23 xml-xalan/c/src/XSLT/XSLTEngineImpl.hpp
Index: XSLTEngineImpl.hpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/XSLTEngineImpl.hpp,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- XSLTEngineImpl.hpp 2000/07/28 22:02:21 1.40
+++ XSLTEngineImpl.hpp 2000/08/01 19:43:27 1.41
@@ -105,7 +105,6 @@
// Forward definitions
-class DispatcherFactory;
class GenerateEvent;
class PrintWriter;
class ResultTreeFragBase;
@@ -1053,28 +1052,6 @@
{
return *m_xpathProcessor.get();
}
-
- /**
- * Given a classID and codetype, try to register a code dispatcher.
- *
- * @param classid class id for extension
- * @param codetype type of extension
- */
- void
- registerExtensionHandlerByName(
- const XalanDOMString& classid,
- const XalanDOMString& codetype);
-
- /**
- * Register the given DispatcherFactory for a given mime type.
- *
- * @param mimeType MIME type string
- * @param factory factory to register
- */
- void
- registerExtensionHandler(
- const XalanDOMString& mimeType,
- DispatcherFactory* factory);
/**
* Reset the state. This needs to be called after a process() call