From fcca18218dd4dddbc0b15060a1a8bb2bb94339b6 Mon Sep 17 00:00:00 2001 From: HyemIin Date: Wed, 31 Jan 2024 21:26:33 +0900 Subject: [PATCH] =?UTF-8?q?Refactor=20:=20Import=EB=AC=B8=20=EC=A0=95?= =?UTF-8?q?=EB=A0=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 미사용 import 정리 --- .../chat/chatroom/controller/ChatRoomController.java | 3 +-- .../catchroom/chat/chatroom/service/ChatRoomService.java | 8 +------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/catchroom/chat/chatroom/controller/ChatRoomController.java b/src/main/java/com/catchroom/chat/chatroom/controller/ChatRoomController.java index 79e5b3f..89ee1ce 100644 --- a/src/main/java/com/catchroom/chat/chatroom/controller/ChatRoomController.java +++ b/src/main/java/com/catchroom/chat/chatroom/controller/ChatRoomController.java @@ -2,10 +2,9 @@ import com.catchroom.chat.chatroom.dto.ChatRoomListGetResponse; import com.catchroom.chat.chatroom.service.ChatRoomService; -import com.catchroom.chat.message.type.MessageType; import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.*; + import java.util.List; @RestController diff --git a/src/main/java/com/catchroom/chat/chatroom/service/ChatRoomService.java b/src/main/java/com/catchroom/chat/chatroom/service/ChatRoomService.java index 6f9640f..233194c 100644 --- a/src/main/java/com/catchroom/chat/chatroom/service/ChatRoomService.java +++ b/src/main/java/com/catchroom/chat/chatroom/service/ChatRoomService.java @@ -5,20 +5,14 @@ import com.catchroom.chat.global.common.SuccessMessage; import com.catchroom.chat.message.dto.ChatMessageDto; import com.catchroom.chat.message.entity.ChatMessage; -import com.catchroom.chat.message.repository.ChatMessageRepository; import com.catchroom.chat.message.repository.ChatRoomRedisRepository; import com.catchroom.chat.message.service.ChatMongoService; -import com.catchroom.chat.message.service.ChatService; -import com.catchroom.chat.message.type.MessageType; -import java.util.ArrayList; -import java.util.stream.Collectors; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; -import java.time.LocalDateTime; +import java.util.ArrayList; import java.util.Collections; -import java.util.Comparator; import java.util.List; @RequiredArgsConstructor