From ee699f24dd37ad4a511a5fb7899a3aea0c392092 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 30 Oct 2019 08:24:13 +0100 Subject: [PATCH] Remove DiscoverInfo.Identity(Identity) copy constructor as there is no need to copy an immutable type. --- .../jivesoftware/smackx/disco/packet/DiscoverInfo.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/packet/DiscoverInfo.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/packet/DiscoverInfo.java index 9c5674f70..796e51857 100644 --- a/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/packet/DiscoverInfo.java +++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/packet/DiscoverInfo.java @@ -338,14 +338,6 @@ public class DiscoverInfo extends IQ implements DiscoverInfoView, TypedCloneable private final String name; private final String lang; // 'xml:lang; - public Identity(Identity identity) { - this.category = identity.category; - this.type = identity.type; - this.key = identity.type; - this.name = identity.name; - this.lang = identity.lang; - } - /** * Creates a new identity for an XMPP entity. *