Skip to content

Commit 9e62b8d

Browse files
committed
fix: removed dead_code
1 parent 276dfaa commit 9e62b8d

File tree

3 files changed

+36
-50
lines changed

3 files changed

+36
-50
lines changed
Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
[
2-
{
3-
"id": "ukuku09",
4-
"start_epoch_second": 1530939600,
5-
"duration_second": 10800,
6-
"title": "ウクーニャたんお誕生日コンテスト",
2+
{
3+
"id": "ukuku09",
4+
"start_epoch_second": 1530939600,
5+
"duration_second": 10800,
6+
"title": "ウクーニャたんお誕生日コンテスト",
77
"rate_change": "-"
8-
},
9-
{
10-
"id": "summerfes2018-div1",
11-
"start_epoch_second": 1535175000,
12-
"duration_second": 7200,
13-
"title": "Summer Festival Contest 2018 (Division 1)",
8+
},
9+
{
10+
"id": "summerfes2018-div1",
11+
"start_epoch_second": 1535175000,
12+
"duration_second": 7200,
13+
"title": "Summer Festival Contest 2018 (Division 1)",
1414
"rate_change": "-"
15-
},
16-
{
17-
"id": "summerfes2018-div2",
18-
"start_epoch_second": 1535175000,
19-
"duration_second": 7200,
20-
"title": "Summer Festival Contest 2018 (Division 2)",
15+
},
16+
{
17+
"id": "summerfes2018-div2",
18+
"start_epoch_second": 1535175000,
19+
"duration_second": 7200,
20+
"title": "Summer Festival Contest 2018 (Division 2)",
2121
"rate_change": "-"
22-
},
23-
{
24-
"id": "monamieHB2021",
25-
"start_epoch_second": 1618920000,
26-
"duration_second": 7200,
27-
"title": "えびまのお誕生日コンテスト 2021 Day 1",
22+
},
23+
{
24+
"id": "monamieHB2021",
25+
"start_epoch_second": 1618920000,
26+
"duration_second": 7200,
27+
"title": "えびまのお誕生日コンテスト 2021 Day 1",
2828
"rate_change": "-"
29-
},
30-
{
31-
"id": "tkppc6-1",
32-
"start_epoch_second": 1629604800,
33-
"duration_second": 10800,
34-
"title": "技術室奥プログラミングコンテスト#6 Day1",
29+
},
30+
{
31+
"id": "tkppc6-1",
32+
"start_epoch_second": 1629604800,
33+
"duration_second": 10800,
34+
"title": "技術室奥プログラミングコンテスト#6 Day1",
3535
"rate_change": "-"
36-
},
37-
{
38-
"id": "genocon2021",
39-
"start_epoch_second": 1629720000,
40-
"duration_second": 2429940,
41-
"title": "ゲノコン2021 ー DNA配列解析チャレンジ",
36+
},
37+
{
38+
"id": "genocon2021",
39+
"start_epoch_second": 1629720000,
40+
"duration_second": 2429940,
41+
"title": "ゲノコン2021 ー DNA配列解析チャレンジ",
4242
"rate_change": "-"
4343
}
4444
]

atcoder-problems-frontend/src/api/APIClient.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ import { isContestParticipation } from "../interfaces/ContestParticipation";
44
import MergedProblem, { isMergedProblem } from "../interfaces/MergedProblem";
55
import Problem, { isProblem } from "../interfaces/Problem";
66
import ProblemModel, { isProblemModel } from "../interfaces/ProblemModel";
7-
import {
8-
isRankingEntry,
9-
isSumRankingEntry,
10-
RankingEntry,
11-
SumRankingEntry,
12-
} from "../interfaces/RankingEntry";
7+
import { isRankingEntry, RankingEntry } from "../interfaces/RankingEntry";
138
import { ContestId, ProblemId, UserId } from "../interfaces/Status";
149
import { isSubmission } from "../interfaces/Submission";
1510
import { isUserRankEntry, UserRankEntry } from "../interfaces/UserRankEntry";

atcoder-problems-frontend/src/interfaces/RankingEntry.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ export const isRankingEntry = (obj: unknown): obj is RankingEntry =>
99
hasPropertyAsType(obj, "count", isNumber) &&
1010
hasPropertyAsType(obj, "user_id", isString);
1111

12-
export interface SumRankingEntry {
13-
readonly user_id: string;
14-
readonly point_sum: number;
15-
}
16-
17-
export const isSumRankingEntry = (obj: unknown): obj is SumRankingEntry =>
18-
hasPropertyAsType(obj, "user_id", isString) &&
19-
hasPropertyAsType(obj, "point_sum", isNumber);
20-
2112
export interface LangRankingEntry {
2213
user_id: string;
2314
count: number;

0 commit comments

Comments
 (0)