From: David ‘Bombe’ Roden Date: Sat, 19 Oct 2013 19:14:13 +0000 (+0200) Subject: Remove unnecessary parameter. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=8712325fb8be5af9d970ac5c12dc71d2d2a7c3d3;p=Sone.git Remove unnecessary parameter. --- diff --git a/src/main/java/net/pterodactylus/sone/core/SoneParser.java b/src/main/java/net/pterodactylus/sone/core/SoneParser.java index 7640ebd..63bba74 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -101,7 +101,7 @@ public class SoneParser { Optional parsedClient = parseClient(originalSone, soneXml.get()); Sone sone = new DefaultSone(new MemoryDatabase(null), originalSone.getId(), originalSone.isLocal(), parsedClient.or(originalSone.getClient())); - Optional protocolVersion = parseProtocolVersion(originalSone, soneXml.get()); + Optional 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 parseProtocolVersion(Sone originalSone, SimpleXML soneXml) { + private Optional parseProtocolVersion(SimpleXML soneXml) { String soneProtocolVersion = soneXml.getValue("protocol-version", null); if (soneProtocolVersion == null) { logger.log(Level.INFO, "No protocol version found, assuming 0.");