From 613f1afcab2eb33dcef3973a9af8dd4f8743b867 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 25 Aug 2021 22:48:31 +0200 Subject: [PATCH] [mam] Delete unused local variable 'iqType' in MamPrefsIQProvider --- .../jivesoftware/smackx/mam/provider/MamPrefsIQProvider.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/provider/MamPrefsIQProvider.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/provider/MamPrefsIQProvider.java index 2b4795036..664b3e657 100644 --- a/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/provider/MamPrefsIQProvider.java +++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/provider/MamPrefsIQProvider.java @@ -43,17 +43,12 @@ public class MamPrefsIQProvider extends IQProvider { @Override public MamPrefsIQ parse(XmlPullParser parser, int initialDepth, XmlEnvironment xmlEnvironment) throws XmlPullParserException, IOException { - String iqType = parser.getAttributeValue("", "type"); String defaultBehaviorString = parser.getAttributeValue("", "default"); DefaultBehavior defaultBehavior = null; if (defaultBehaviorString != null) { defaultBehavior = DefaultBehavior.valueOf(defaultBehaviorString); } - if (iqType == null) { - iqType = "result"; - } - List alwaysJids = null; List neverJids = null;