From bdbcedc1e523e51a5e41b46b1856746b4b0e069a Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 25 Oct 2013 07:05:53 +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 8967cfc..5a7229d 100644 --- a/src/main/java/net/pterodactylus/sone/core/SoneParser.java +++ b/src/main/java/net/pterodactylus/sone/core/SoneParser.java @@ -85,7 +85,7 @@ public class SoneParser { throw new InvalidXml(); } - Optional soneXml = parseXml(originalSone, document); + Optional 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 parseXml(Sone originalSone, Document document) { + private Optional parseXml(Document document) { try { return fromNullable(SimpleXML.fromDocument(document)); } catch (NullPointerException npe1) { -- 2.7.4