mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-05-23 05:46:24 -05:00
[-] Remove unused functions
This commit is contained in:
parent
7182514a64
commit
f37a32ceab
|
|
@ -28,10 +28,6 @@ public class GameGachaCardService {
|
|||
return gameGachaCardRepository.findAll();
|
||||
}
|
||||
|
||||
public List<GameGachaCard> getByGachaId(int gachaId) {
|
||||
return gameGachaCardRepository.findAllByGachaId(gachaId);
|
||||
}
|
||||
|
||||
public List<GameGachaCard> getRandomCards(int gachaId, int times) {
|
||||
List<GameGachaCard> gachaCards = gameGachaCardRepository.findAllByGachaId(gachaId);
|
||||
List<GameGachaCard> randomCards = new ArrayList<>();
|
||||
|
|
|
|||
|
|
@ -42,12 +42,4 @@ public class GameMusicService {
|
|||
getAll().forEach(music -> musicMap.put(music.getMusicId(), music));
|
||||
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) {
|
||||
return userGachaRepository.findByUser_Card_ExtId(Long.parseLong(userId));
|
||||
}
|
||||
|
||||
public Optional<UserGacha> getByUserAndGachaId(Chu3UserData user, int gachaId) {
|
||||
return userGachaRepository.findByUserAndGachaId(user, gachaId);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user