From: David ‘Bombe’ Roden Date: Fri, 25 Oct 2013 05:05:53 +0000 (+0200) Subject: Remove unnecessary parameter. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bdbcedc1e523e51a5e41b46b1856746b4b0e069a;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 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) {