Author: markt Date: Mon Jun 15 13:04:18 2009 New Revision: 784764 URL: http://svn.apache.org/viewvc?rev=784764&view=rev Log: Remove unused, deprecated code in Jasper
Modified: tomcat/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java tomcat/trunk/java/org/apache/jasper/compiler/ParserController.java tomcat/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java tomcat/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java Modified: tomcat/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java?rev=784764&r1=784763&r2=784764&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java (original) +++ tomcat/trunk/java/org/apache/jasper/compiler/JspDocumentParser.java Mon Jun 15 13:04:18 2009 @@ -356,8 +356,7 @@ nonTaglibAttrs, nonTaglibXmlnsAttrs, taglibAttrs, - startMark, - current); + startMark); return; } @@ -370,8 +369,7 @@ nonTaglibAttrs, nonTaglibXmlnsAttrs, taglibAttrs, - startMark, - current); + startMark); return; } @@ -398,8 +396,7 @@ nonTaglibAttrs, nonTaglibXmlnsAttrs, taglibAttrs, - startMark, - current); + startMark); } else { node = parseCustomAction( @@ -815,8 +812,7 @@ Attributes nonTaglibAttrs, Attributes nonTaglibXmlnsAttrs, Attributes taglibAttrs, - Mark start, - Node parent) + Mark start) throws SAXException { Node node = null; Modified: tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java?rev=784764&r1=784763&r2=784764&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java (original) +++ tomcat/trunk/java/org/apache/jasper/compiler/JspUtil.java Mon Jun 15 13:04:18 2009 @@ -817,27 +817,6 @@ * * @return Fully-qualified class name of the tag handler corresponding to * the given tag file path - * - * @deprecated Use {...@link #getTagHandlerClassName(String, String, - * ErrorDispatcher) - * See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 - */ - public static String getTagHandlerClassName(String path, ErrorDispatcher err) - throws JasperException { - return getTagHandlerClassName(path, null, err); - } - - /** - * Gets the fully-qualified class name of the tag handler corresponding to - * the given tag file path. - * - * @param path - * Tag file path - * @param err - * Error dispatcher - * - * @return Fully-qualified class name of the tag handler corresponding to - * the given tag file path */ public static String getTagHandlerClassName(String path, String urn, ErrorDispatcher err) throws JasperException { Modified: tomcat/trunk/java/org/apache/jasper/compiler/ParserController.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/ParserController.java?rev=784764&r1=784763&r2=784764&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/compiler/ParserController.java (original) +++ tomcat/trunk/java/org/apache/jasper/compiler/ParserController.java Mon Jun 15 13:04:18 2009 @@ -138,22 +138,6 @@ } /** - * Extracts tag file directive information from the tag file with the - * given name. - * - * This is invoked by the compiler - * - * @param inFileName The name of the tag file to be parsed. - * @deprecated Use {...@link #parseTagFileDirectives(String, URL)} - * See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 - */ - public Node.Nodes parseTagFileDirectives(String inFileName) - throws FileNotFoundException, JasperException, IOException { - return parseTagFileDirectives( - inFileName, ctxt.getTagFileJarUrl(inFileName)); - } - - /** * Extracts tag file directive information from the given tag file. * * This is invoked by the compiler Modified: tomcat/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java?rev=784764&r1=784763&r2=784764&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java (original) +++ tomcat/trunk/java/org/apache/jasper/compiler/TagFileProcessor.java Mon Jun 15 13:04:18 2009 @@ -501,33 +501,6 @@ * the tag name as specified in the TLD * @param tagfile * the path for the tagfile - * @param tagLibInfo - * the TagLibraryInfo object associated with this TagInfo - * @return a TagInfo object assembled from the directives in the tag file. - * @deprecated Use {...@link TagFileProcessor#parseTagFileDirectives( - * ParserController, String, String, URL, TagLibraryInfo)} - * See https://issues.apache.org/bugzilla/show_bug.cgi?id=46471 - */ - public static TagInfo parseTagFileDirectives(ParserController pc, - String name, String path, TagLibraryInfo tagLibInfo) - throws JasperException { - return parseTagFileDirectives(pc, name, path, - pc.getJspCompilationContext().getTagFileJarUrl(path), - tagLibInfo); - } - - /** - * Parses the tag file, and collects information on the directives included - * in it. The method is used to obtain the info on the tag file, when the - * handler that it represents is referenced. The tag file is not compiled - * here. - * - * @param pc - * the current ParserController used in this compilation - * @param name - * the tag name as specified in the TLD - * @param tagfile - * the path for the tagfile * @param tagFileJarUrl * the url for the Jar containign the tag file * @param tagLibInfo Modified: tomcat/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java?rev=784764&r1=784763&r2=784764&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java (original) +++ tomcat/trunk/java/org/apache/jasper/compiler/TagLibraryInfoImpl.java Mon Jun 15 13:04:18 2009 @@ -160,7 +160,7 @@ err.jspError("jsp.error.file.not.found", location[0]); } - parseTLD(ctxt, location[0], in, null); + parseTLD(location[0], in, null); // Add TLD to dependency list PageInfo pageInfo = ctxt.createCompiler().getPageInfo(); if (pageInfo != null) { @@ -177,7 +177,7 @@ jarFile = conn.getJarFile(); ZipEntry jarEntry = jarFile.getEntry(location[1]); in = jarFile.getInputStream(jarEntry); - parseTLD(ctxt, location[0], in, jarFileUrl); + parseTLD(location[0], in, jarFileUrl); } catch (Exception ex) { err.jspError("jsp.error.tld.unable_to_read", location[0], location[1], ex.toString()); @@ -210,8 +210,8 @@ * in The TLD's input stream @param jarFileUrl The JAR file containing the * TLD, or null if the tag library is not packaged in a JAR */ - private void parseTLD(JspCompilationContext ctxt, String uri, - InputStream in, URL jarFileUrl) throws JasperException { + private void parseTLD(String uri, InputStream in, URL jarFileUrl) + throws JasperException { Vector<TagInfo> tagVector = new Vector<TagInfo>(); Vector<TagFileInfo> tagFileVector = new Vector<TagFileInfo>(); Hashtable<String, FunctionInfo> functionTable = new Hashtable<String, FunctionInfo>(); @@ -249,7 +249,7 @@ else if ("tag".equals(tname)) tagVector.addElement(createTagInfo(element, jspversion)); else if ("tag-file".equals(tname)) { - TagFileInfo tagFileInfo = createTagFileInfo(element, uri, + TagFileInfo tagFileInfo = createTagFileInfo(element, jarFileUrl); tagFileVector.addElement(tagFileInfo); } else if ("function".equals(tname)) { // JSP2.0 @@ -446,8 +446,8 @@ * * @return TagInfo correspoding to tag file directives */ - private TagFileInfo createTagFileInfo(TreeNode elem, String uri, - URL jarFileUrl) throws JasperException { + private TagFileInfo createTagFileInfo(TreeNode elem, URL jarFileUrl) + throws JasperException { String name = null; String path = null; --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org