Skip to content

Commit 151393f

Browse files
committed
refactor: 사용하지 않는 메서드 제거
1 parent 2f2917a commit 151393f

2 files changed

Lines changed: 0 additions & 40 deletions

File tree

apps/commerce-api/src/main/java/com/loopers/domain/ranking/RankingKey.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,4 @@ private RankingKey() {
1717
public static String daily(LocalDate date) {
1818
return KEY_PREFIX + date.format(DATE_FORMATTER);
1919
}
20-
21-
public static String today() {
22-
return daily(LocalDate.now());
23-
}
24-
25-
public static String fromDateString(String dateString) {
26-
return KEY_PREFIX + dateString;
27-
}
28-
29-
public static LocalDate parseDate(String dateString) {
30-
return LocalDate.parse(dateString, DATE_FORMATTER);
31-
}
3220
}

apps/commerce-streamer/src/main/java/com/loopers/domain/ranking/RankingKey.java

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -17,32 +17,4 @@ private RankingKey() {
1717
public static String daily(LocalDate date) {
1818
return KEY_PREFIX + date.format(DATE_FORMATTER);
1919
}
20-
21-
/**
22-
* 오늘 랭킹 키 생성
23-
*/
24-
public static String today() {
25-
return daily(LocalDate.now());
26-
}
27-
28-
/**
29-
* 어제 랭킹 키 생성
30-
*/
31-
public static String yesterday() {
32-
return daily(LocalDate.now().minusDays(1));
33-
}
34-
35-
/**
36-
* 날짜 문자열(yyyyMMdd)로부터 키 생성
37-
*/
38-
public static String fromDateString(String dateString) {
39-
return KEY_PREFIX + dateString;
40-
}
41-
42-
/**
43-
* 키에서 날짜 추출
44-
*/
45-
public static String extractDate(String key) {
46-
return key.replace(KEY_PREFIX, "");
47-
}
4820
}

0 commit comments

Comments
 (0)