Remove DiscoverInfo.Identity(Identity) copy constructor

as there is no need to copy an immutable type.
This commit is contained in:
Florian Schmaus 2019-10-30 08:24:13 +01:00
parent 63a4212f7e
commit ee699f24dd
1 changed files with 0 additions and 8 deletions

View File

@ -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.
*