Skip to content

Commit a2c1be3

Browse files
committed
fix: TicketOptionConverter 미사용 메서드 제거
1 parent 96eba32 commit a2c1be3

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/main/java/com/gotogether/domain/ticketoption/converter/TicketOptionConverter.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
import java.util.List;
44
import java.util.stream.Collectors;
55

6-
import com.gotogether.domain.ticket.entity.Ticket;
76
import com.gotogether.domain.ticketoption.dto.request.TicketOptionRequestDTO;
87
import com.gotogether.domain.ticketoption.dto.response.TicketOptionChoiceResponseDTO;
9-
import com.gotogether.domain.ticketoption.dto.response.TicketOptionPerTicketResponseDTO;
108
import com.gotogether.domain.ticketoption.dto.response.TicketOptionDetailResponseDTO;
119
import com.gotogether.domain.ticketoption.entity.TicketOption;
1210
import com.gotogether.domain.ticketoption.entity.TicketOptionChoice;
@@ -33,16 +31,6 @@ public static List<TicketOptionChoice> toTicketOptionChoiceList(List<String> cho
3331
.collect(Collectors.toList());
3432
}
3533

36-
public static TicketOptionPerTicketResponseDTO toTicketOptionPerTicketResponseDTO(Ticket ticket, List<TicketOption> ticketOptions) {
37-
return TicketOptionPerTicketResponseDTO.builder()
38-
.ticketId(ticket.getId())
39-
.ticketName(ticket.getName())
40-
.options(ticketOptions.stream()
41-
.map(TicketOptionConverter::toTicketOptionDetailResponseDTO)
42-
.collect(Collectors.toList()))
43-
.build();
44-
}
45-
4634
public static TicketOptionDetailResponseDTO toTicketOptionDetailResponseDTO(TicketOption ticketOption) {
4735
List<TicketOptionChoiceResponseDTO> choices = ticketOption.getChoices().stream()
4836
.map(TicketOptionConverter::toTicketOptionChoiceResponseDTO)

0 commit comments

Comments
 (0)