From 47d7e0e533687b204e6c781f0dce57ca54e01348 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 7 Apr 2017 11:01:29 +0300 Subject: juick-www: refactoring, drop userref shit --- juick-server/src/main/java/com/juick/service/CrosspostService.java | 2 -- .../src/main/java/com/juick/service/CrosspostServiceImpl.java | 6 ------ 2 files changed, 8 deletions(-) (limited to 'juick-server/src/main/java/com/juick') diff --git a/juick-server/src/main/java/com/juick/service/CrosspostService.java b/juick-server/src/main/java/com/juick/service/CrosspostService.java index 812d798f..467d1cbe 100644 --- a/juick-server/src/main/java/com/juick/service/CrosspostService.java +++ b/juick-server/src/main/java/com/juick/service/CrosspostService.java @@ -40,8 +40,6 @@ public interface CrosspostService { boolean createVKUser(long vkID, String loginhash, String token, String vkName, String vkLink); - boolean setUserRef(int uid, int ref); - String getFacebookNameByHash(String hash); String getTelegramNameByHash(String hash); diff --git a/juick-server/src/main/java/com/juick/service/CrosspostServiceImpl.java b/juick-server/src/main/java/com/juick/service/CrosspostServiceImpl.java index 4b3bd618..965f2b51 100644 --- a/juick-server/src/main/java/com/juick/service/CrosspostServiceImpl.java +++ b/juick-server/src/main/java/com/juick/service/CrosspostServiceImpl.java @@ -173,12 +173,6 @@ public class CrosspostServiceImpl extends BaseJdbcService implements CrosspostSe vkID, loginhash, token, vkName, vkLink) > 0; } - @Transactional - @Override - public boolean setUserRef(int uid, int ref) { - return getJdbcTemplate().update("INSERT INTO users_refs(user_id,ref) VALUES (?,?)", uid, ref) > 0; - } - @Transactional(readOnly = true) @Override public String getFacebookNameByHash(String hash) { -- cgit v1.2.3