From b917ee40fd8eb9969743c86d1a194f1bdf0523c0 Mon Sep 17 00:00:00 2001 From: daheePark Date: Wed, 4 Dec 2024 19:02:32 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=206=EC=8B=9C=20=EC=9D=B4=ED=9B=84=20?= =?UTF-8?q?=EC=8B=9C=EA=B0=84=EB=8F=84=20=EB=B3=B4=EC=9D=B4=EA=B2=8C=20?= =?UTF-8?q?=EB=8B=A4=EC=8B=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../koin/domain/timetable/dto/TimetableResponse.java | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/main/java/in/koreatech/koin/domain/timetable/dto/TimetableResponse.java b/src/main/java/in/koreatech/koin/domain/timetable/dto/TimetableResponse.java index 7eaf891b7..ce7837194 100644 --- a/src/main/java/in/koreatech/koin/domain/timetable/dto/TimetableResponse.java +++ b/src/main/java/in/koreatech/koin/domain/timetable/dto/TimetableResponse.java @@ -73,13 +73,6 @@ public record InnerTimetableResponse( public static List from(List timetableLectures) { return timetableLectures.stream() - .filter(timeTableLecture -> { - if (timeTableLecture.getLecture() == null) { - List classTimes = parseIntegerClassTimesFromString(timeTableLecture.getClassTime()); - return classTimes.stream().allMatch(InnerTimetableResponse::isValidClassTime); - } - return true; - }) .map(timeTableLecture -> { if (timeTableLecture.getLecture() == null) { return new InnerTimetableResponse( @@ -117,10 +110,6 @@ public static List from(List timetable }) .toList(); } - - private static boolean isValidClassTime(int classTime) { - return classTime < 19 || classTime % 100 < 19; - } } public static TimetableResponse of(List timetableLectures, TimetableFrame timetableFrame,