From 8712325fb8be5af9d970ac5c12dc71d2d2a7c3d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Sat, 19 Oct 2013 21:14:13 +0200 Subject: [PATCH] Remove unnecessary parameter. --- src/main/java/net/pterodactylus/sone/core/SoneParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."); -- 2.7.4