From d7f381dc53937f4b15156c51cb60feaeb745d0ef Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 28 Nov 2018 17:56:43 +0300 Subject: Drop unused Messenger service --- src/main/java/com/juick/server/www/controllers/SignUp.java | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/main/java/com/juick/server/www/controllers') diff --git a/src/main/java/com/juick/server/www/controllers/SignUp.java b/src/main/java/com/juick/server/www/controllers/SignUp.java index eac1c767..e4ea6958 100644 --- a/src/main/java/com/juick/server/www/controllers/SignUp.java +++ b/src/main/java/com/juick/server/www/controllers/SignUp.java @@ -22,7 +22,6 @@ import com.juick.server.util.UserUtils; import com.juick.server.www.WebApp; import com.juick.service.CrosspostService; import com.juick.service.EmailService; -import com.juick.service.MessengerService; import com.juick.service.UserService; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; @@ -46,8 +45,6 @@ public class SignUp { @Inject private CrosspostService crosspostService; @Inject - private MessengerService messengerService; - @Inject private EmailService emailService; @Inject private WebApp webApp; @@ -76,9 +73,6 @@ public class SignUp { case "durov": account = crosspostService.getTelegramNameByHash(hash); break; - case "messenger": - account = messengerService.getDisplayName(hash); - break; case "email": account = emailService.getEmailByAuthCode(hash); } @@ -128,8 +122,7 @@ public class SignUp { if (!(type.charAt(0) == 'f' && crosspostService.setFacebookUser(hash, uid)) && !(type.charAt(0) == 'v' && crosspostService.setVKUser(hash, uid)) && !(type.charAt(0) == 'd' && crosspostService.setTelegramUser(hash, uid)) - && !(type.charAt(0) == 'x' && userService.getAllJIDs(visitor).size() > 0 && crosspostService.setJIDUser(hash, uid)) - && !(type.charAt(0) == 'm' && messengerService.linkMessengerUser(hash, uid))) { + && !(type.charAt(0) == 'x' && userService.getAllJIDs(visitor).size() > 0 && crosspostService.setJIDUser(hash, uid))) { if (type.equals("email")) { String email = emailService.getEmailByAuthCode(hash); emailService.addEmail(uid, email); @@ -153,8 +146,7 @@ public class SignUp { if (!(type.charAt(0) == 'f' && crosspostService.setFacebookUser(hash, uid)) && !(type.charAt(0) == 'v' && crosspostService.setVKUser(hash, uid)) - && !(type.charAt(0) == 'd' && crosspostService.setTelegramUser(hash, uid)) - && !(type.charAt(0) == 'm' && messengerService.linkMessengerUser(hash, uid))) { + && !(type.charAt(0) == 'd' && crosspostService.setTelegramUser(hash, uid))) { if (type.equals("email")) { String email = emailService.getEmailByAuthCode(hash); emailService.addEmail(uid, email); -- cgit v1.2.3