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

index 7640ebd..63bba74 100644 (file)
@@ -101,7 +101,7 @@ public class SoneParser {
                Optional<Client> parsedClient = parseClient(originalSone, soneXml.get());
                Sone sone = new DefaultSone(new MemoryDatabase(null), originalSone.getId(), originalSone.isLocal(), parsedClient.or(originalSone.getClient()));
 
-               Optional<Integer> protocolVersion = parseProtocolVersion(originalSone, soneXml.get());
+               Optional<Integer> protocolVersion = parseProtocolVersion(soneXml.get());
                if (protocolVersion.isPresent()) {
                        if (protocolVersion.get() < 0) {
                                logger.log(Level.WARNING, String.format("Invalid protocol version: %d! Not parsing Sone.", protocolVersion));
@@ -321,7 +321,7 @@ public class SoneParser {
                return sone;
        }
 
-       private Optional<Integer> parseProtocolVersion(Sone originalSone, SimpleXML soneXml) {
+       private Optional<Integer> parseProtocolVersion(SimpleXML soneXml) {
                String soneProtocolVersion = soneXml.getValue("protocol-version", null);
                if (soneProtocolVersion == null) {
                        logger.log(Level.INFO, "No protocol version found, assuming 0.");