forked from Cookies_Github_mirror/AquaDX
[-] Remove unused functions
This commit is contained in:
@@ -28,10 +28,6 @@ public class GameGachaCardService {
|
|||||||
return gameGachaCardRepository.findAll();
|
return gameGachaCardRepository.findAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<GameGachaCard> getByGachaId(int gachaId) {
|
|
||||||
return gameGachaCardRepository.findAllByGachaId(gachaId);
|
|
||||||
}
|
|
||||||
|
|
||||||
public List<GameGachaCard> getRandomCards(int gachaId, int times) {
|
public List<GameGachaCard> getRandomCards(int gachaId, int times) {
|
||||||
List<GameGachaCard> gachaCards = gameGachaCardRepository.findAllByGachaId(gachaId);
|
List<GameGachaCard> gachaCards = gameGachaCardRepository.findAllByGachaId(gachaId);
|
||||||
List<GameGachaCard> randomCards = new ArrayList<>();
|
List<GameGachaCard> randomCards = new ArrayList<>();
|
||||||
|
|||||||
@@ -42,12 +42,4 @@ public class GameMusicService {
|
|||||||
getAll().forEach(music -> musicMap.put(music.getMusicId(), music));
|
getAll().forEach(music -> musicMap.put(music.getMusicId(), music));
|
||||||
return musicMap;
|
return musicMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Optional<Music> getById(String musicId) {
|
|
||||||
return getById(Integer.parseInt(musicId));
|
|
||||||
}
|
|
||||||
|
|
||||||
public Optional<Music> getById(int musicId) {
|
|
||||||
return gameMusicRepository.findByMusicId(musicId);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,9 +31,4 @@ public class UserGachaService {
|
|||||||
public List<UserGacha> getByUserId(String userId) {
|
public List<UserGacha> getByUserId(String userId) {
|
||||||
return userGachaRepository.findByUser_Card_ExtId(Long.parseLong(userId));
|
return userGachaRepository.findByUser_Card_ExtId(Long.parseLong(userId));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Optional<UserGacha> getByUserAndGachaId(Chu3UserData user, int gachaId) {
|
|
||||||
return userGachaRepository.findByUserAndGachaId(user, gachaId);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user