[Patchanim-commit] SF.net SVN: patchanim: [118] trunk/patchanim/src/com/mebigfatguy/patchanim/ io
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-02-09 06:46:44
|
Revision: 118 http://patchanim.svn.sourceforge.net/patchanim/?rev=118&view=rev Author: dbrosius Date: 2008-02-08 22:46:49 -0800 (Fri, 08 Feb 2008) Log Message: ----------- cleanup unused Modified Paths: -------------- trunk/patchanim/src/com/mebigfatguy/patchanim/io/PatchAnimDoc.xsl trunk/patchanim/src/com/mebigfatguy/patchanim/io/PatchAnimExtension.java Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/io/PatchAnimDoc.xsl =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/io/PatchAnimDoc.xsl 2008-02-09 06:40:32 UTC (rev 117) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/io/PatchAnimDoc.xsl 2008-02-09 06:46:49 UTC (rev 118) @@ -58,7 +58,7 @@ <xsl:value-of select="pae:getPatchName($ext, $patchIndex)"/> </xsl:attribute> <Patch color="Red"> - <xsl:for-each select="pae:getCoordinates($ext, 'Red', $patchIndex)"> + <xsl:for-each select="pae:getCoordinates($ext)"> <Coordinate> <xsl:attribute name="x"> <xsl:value-of select="pae:getX($ext, 'Red', $patchIndex, .)"/> @@ -73,7 +73,7 @@ </xsl:for-each> </Patch> <Patch color="Green"> - <xsl:for-each select="pae:getCoordinates($ext, 'Green', $patchIndex)"> + <xsl:for-each select="pae:getCoordinates($ext)"> <Coordinate> <xsl:attribute name="x"> <xsl:value-of select="pae:getX($ext, 'Green', $patchIndex, .)"/> @@ -88,7 +88,7 @@ </xsl:for-each> </Patch> <Patch color="Blue"> - <xsl:for-each select="pae:getCoordinates($ext, 'Blue', $patchIndex)"> + <xsl:for-each select="pae:getCoordinates($ext)"> <Coordinate> <xsl:attribute name="x"> <xsl:value-of select="pae:getX($ext, 'Blue', $patchIndex, .)"/> Modified: trunk/patchanim/src/com/mebigfatguy/patchanim/io/PatchAnimExtension.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/io/PatchAnimExtension.java 2008-02-09 06:40:32 UTC (rev 117) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/io/PatchAnimExtension.java 2008-02-09 06:46:49 UTC (rev 118) @@ -36,14 +36,12 @@ private PatchAnimDocument paDoc; private Document d; - private Node n; public PatchAnimExtension(PatchAnimDocument doc) throws ParserConfigurationException { paDoc = doc; DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); d = db.newDocument(); - n = d.createElement("Patch"); } public String getWidth(@SuppressWarnings("unused") ExpressionContext context) { @@ -74,7 +72,6 @@ } public Node item(int index) { - // TODO Auto-generated method stub return d.createTextNode(String.valueOf(index)); } }; @@ -87,7 +84,7 @@ return paDoc.getPatches().get(patchIndex).getName(); } - public NodeList getCoordinates(@SuppressWarnings("unused") ExpressionContext context, String color, Node n) { + public NodeList getCoordinates(@SuppressWarnings("unused") ExpressionContext context) { NodeList nl = new NodeList() { public int getLength() { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |