Remove unnecessary parameter.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 25 Oct 2013 05:05:53 +0000 (07:05 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 28 Feb 2014 21:25:38 +0000 (22:25 +0100)
src/main/java/net/pterodactylus/sone/core/SoneParser.java

index 8967cfc..5a7229d 100644 (file)
@@ -85,7 +85,7 @@ public class SoneParser {
                        throw new InvalidXml();
                }
 
-               Optional<SimpleXML> soneXml = parseXml(originalSone, document);
+               Optional<SimpleXML> soneXml = parseXml(document);
                if (!soneXml.isPresent()) {
                        logger.log(Level.WARNING, String.format("XML for Sone %s can not be parsed!", originalSone.getId()));
                        throw new InvalidXml();
@@ -321,7 +321,7 @@ public class SoneParser {
                return fromNullable(Ints.tryParse(soneProtocolVersion));
        }
 
-       private Optional<SimpleXML> parseXml(Sone originalSone, Document document) {
+       private Optional<SimpleXML> parseXml(Document document) {
                try {
                        return fromNullable(SimpleXML.fromDocument(document));
                } catch (NullPointerException npe1) {