From d1dae1f5bb9de1b8ff6893e821e9aaad3e37216c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 31 Jan 2018 14:30:36 +0300 Subject: core: drop jid from user properties --- .../src/main/java/com/juick/server/helpers/AnonymousUser.java | 10 ---------- .../src/main/java/com/juick/service/UserService.java | 2 -- 2 files changed, 12 deletions(-) (limited to 'juick-server-core/src/main') diff --git a/juick-server-core/src/main/java/com/juick/server/helpers/AnonymousUser.java b/juick-server-core/src/main/java/com/juick/server/helpers/AnonymousUser.java index d1e13e78..122bbe29 100644 --- a/juick-server-core/src/main/java/com/juick/server/helpers/AnonymousUser.java +++ b/juick-server-core/src/main/java/com/juick/server/helpers/AnonymousUser.java @@ -30,7 +30,6 @@ public final class AnonymousUser extends User { super.setName(getName()); super.setAvatar(getAvatar()); super.setFullName(getFullName()); - super.setJid(getJid()); super.setMessagesCount(getMessagesCount()); super.setAuthHash(getAuthHash()); super.setBanned(isBanned()); @@ -58,11 +57,6 @@ public final class AnonymousUser extends User { return getName(); } - @Override - public String getJid() { - return "anonym@localhost"; - } - @Override public String getAuthHash() { return null; @@ -115,10 +109,6 @@ public final class AnonymousUser extends User { public void setFullName(String fullName) { } - @Override - public void setJid(String jid) { - } - @Override public void setAuthHash(String authHash) { } diff --git a/juick-server-core/src/main/java/com/juick/service/UserService.java b/juick-server-core/src/main/java/com/juick/service/UserService.java index 2da643d8..6ca6fb98 100644 --- a/juick-server-core/src/main/java/com/juick/service/UserService.java +++ b/juick-server-core/src/main/java/com/juick/service/UserService.java @@ -57,8 +57,6 @@ public interface UserService { List getUsersByID(Collection uids); - List getUsersByJID(Collection jids); - List getJIDsbyUID(int uid); int getUIDbyJID(String jid); -- cgit v1.2.3