Skip to content

Commit 293b3cc

Browse files
committed
refactor/#110: 주석및 로거 제거
1 parent 1854d5e commit 293b3cc

File tree

7 files changed

+6
-30
lines changed

7 files changed

+6
-30
lines changed

Poppool/Poppool/Presentation/Scene/Admin/AdminBottomSheet/AdminBottomSheetView.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ final class AdminBottomSheetView: UIView {
209209

210210
// MARK: - Public Methods
211211
func updateContentVisibility(isCategorySelected: Bool) {
212-
Logger.log(message: "높이 변경 시작: \(isCategorySelected ? "카테고리" : "상태값")", category: .debug)
213212

214213
let newHeight: CGFloat = isCategorySelected ? 200 : 160
215214

@@ -220,6 +219,5 @@ final class AdminBottomSheetView: UIView {
220219
setNeedsLayout()
221220
layoutIfNeeded()
222221

223-
Logger.log(message: "높이 변경 완료", category: .debug)
224222
}
225223
}

Poppool/Poppool/Presentation/Scene/Map/MapView/MapSearchInput.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,11 @@ final class MapSearchInput: UIView, View {
7171
}
7272

7373
func bind(reactor: MapReactor) {
74-
// 텍스트필드 입력 로그 (필요 시 확인)
7574
searchTextField.rx.text.orEmpty
7675
.subscribe(onNext: { text in
77-
print("[DEBUG] TextField Input: \(text)")
7876
})
7977
.disposed(by: disposeBag)
8078

81-
// Reactor의 선택된 위치 필터를 텍스트필드에 바인딩 (없으면 기본 문구)
8279
reactor.state
8380
.map { $0.selectedLocationFilters.first ?? "팝업스토어명을 입력해보세요" }
8481
.distinctUntilChanged()
@@ -92,14 +89,12 @@ final class MapSearchInput: UIView, View {
9289

9390
// MARK: - Gesture Setup
9491
private func setupGesture() {
95-
// containerView에 탭 제스처를 추가하여 화면 전환 트리거
9692
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(handleTapGesture))
9793
containerView.addGestureRecognizer(tapGesture)
9894
containerView.isUserInteractionEnabled = true
9995
}
10096

10197
@objc private func handleTapGesture() {
102-
// onSearch 클로저를 호출해서 화면 전환을 진행
10398
onSearch?(searchTextField.text ?? "")
10499
}
105100
}

Poppool/Poppool/Presentation/Scene/Map/MapView/MapViewController+Handlers.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@
287287
// return true
288288
// }
289289
//
290+
//
290291
// func handleMicroClusterTap(_ marker: NMFMarker, storeArray: [MapPopUpStore]) -> Bool {
291292
// if currentMarker == marker {
292293
// currentTooltipView?.removeFromSuperview()

Poppool/Poppool/Presentation/Scene/Map/MapView/MapViewController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,8 +1420,6 @@ class MapViewController: BaseViewController, View, CLLocationManagerDelegate, NM
14201420
let currentZoom = mainView.mapView.zoomLevel
14211421
let currentLevel = MapZoomLevel.getLevel(from: Float(currentZoom))
14221422

1423-
1424-
14251423
switch currentLevel {
14261424
case .city: // 시 단위 클러스터
14271425
let districtZoomLevel: Double = 10.0
@@ -1436,7 +1434,9 @@ class MapViewController: BaseViewController, View, CLLocationManagerDelegate, NM
14361434
cameraUpdate.animation = .easeIn
14371435
cameraUpdate.animationDuration = 0.3
14381436
mainView.mapView.moveCamera(cameraUpdate)
1439-
default:
1437+
default:
1438+
print("기타 레벨 클러스터 처리")
1439+
14401440
}
14411441

14421442
// 클러스터에 포함된 스토어들만 표시하도록 마커 업데이트

Poppool/Poppool/Presentation/Scene/Map/MapView/MarkerTooltipView.swift

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class MarkerTooltipView: UIView, UIGestureRecognizerDelegate {
3030
// MARK: - Initialization
3131
override init(frame: CGRect) {
3232
super.init(frame: frame)
33-
self.frame.size = CGSize(width: 200, height: 100) // 임시 높이로 시작
33+
self.frame.size = CGSize(width: 200, height: 100)
3434
setupLayout()
3535
// setupGestures()
3636
}
@@ -71,15 +71,10 @@ final class MarkerTooltipView: UIView, UIGestureRecognizerDelegate {
7171
// 기존 뷰 제거
7272
stackView.arrangedSubviews.forEach { $0.removeFromSuperview() }
7373

74-
print("🗨️ 툴팁 구성")
75-
print("📋 입력받은 스토어: \(stores.map { $0.name })")
76-
77-
// stores 배열 순서대로 처리
7874
for (index, store) in stores.enumerated() {
7975
let rowContainer = createRow(for: store, at: index)
8076
stackView.addArrangedSubview(rowContainer)
8177

82-
// 구분선 추가 (마지막 아이템 제외)
8378
if index < stores.count - 1 {
8479
let separator = createSeparator()
8580
stackView.addArrangedSubview(separator)
@@ -89,7 +84,6 @@ final class MarkerTooltipView: UIView, UIGestureRecognizerDelegate {
8984
// 레이아웃 업데이트
9085
layoutIfNeeded()
9186

92-
// 컨텐츠 크기에 맞게 높이 조정
9387
let height = stackView.systemLayoutSizeFitting(
9488
CGSize(width: 200, height: UIView.layoutFittingCompressedSize.height)
9589
).height + 24
@@ -156,10 +150,6 @@ final class MarkerTooltipView: UIView, UIGestureRecognizerDelegate {
156150
@objc private func handleRowTap(_ gesture: UITapGestureRecognizer) {
157151
guard let row = gesture.view else { return }
158152
let index = row.tag
159-
160-
print("🗨️ 툴팁 탭")
161-
print("👆 탭된 인덱스: \(index)")
162-
163153
gesture.cancelsTouchesInView = true
164154
selectStore(at: index)
165155
onStoreSelected?(index)
@@ -186,11 +176,9 @@ final class MarkerTooltipView: UIView, UIGestureRecognizerDelegate {
186176
else { continue }
187177

188178
if row.tag == index {
189-
// 선택된 행
190179
label.font = .boldSystemFont(ofSize: 12)
191180
bulletView.backgroundColor = .jd500
192181
} else {
193-
// 선택되지 않은 행
194182
label.font = .systemFont(ofSize: 12)
195183
bulletView.backgroundColor = .clear
196184
}

Poppool/Poppool/Presentation/Scene/Map/StoreListView/StoreListReactor.swift

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ final class StoreListReactor: Reactor {
99
private let popUpAPIUseCase: PopUpAPIUseCaseImpl
1010
private let bookmarkStateRelay = PublishRelay<(Int64, Bool)>()
1111

12-
// private var currentPage = 0
13-
// private let pageSize = 10
14-
// private var hasMorePages = true
1512

1613
enum Action {
1714
case syncBookmarkStatus(storeId: Int64, isBookmarked: Bool)
@@ -76,13 +73,12 @@ final class StoreListReactor: Reactor {
7673

7774
// Int64 → Int32 변환 필요
7875
guard let idInt32 = Int32(exactly: store.id) else {
79-
Logger.log(message: "ID 값이 Int32 범위를 초과했습니다: \(store.id)", category: .error)
8076
return .empty()
8177
}
8278

8379
return popUpAPIUseCase.getPopUpDetail(
8480
commentType: "NORMAL",
85-
popUpStoredId: Int64(idInt32) // Int32 → Int64 변환
81+
popUpStoredId: Int64(idInt32)
8682
)
8783
.flatMap { detail -> Observable<Mutation> in
8884
if detail.bookmarkYn != store.isBookmarked {

Poppool/Poppool/Presentation/Utills/Common/MapFilterChips.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ class MapFilterChips: UIView {
5454

5555
// MARK: - Update State
5656
func update(locationText: String?, categoryText: String?) {
57-
print("Updating chips - locationText: \(String(describing: locationText)), categoryText: \(String(describing: categoryText))")
58-
5957
updateChip(button: locationChip, text: locationText, placeholder: "지역선택", onClear: onRemoveLocation)
6058
updateChip(button: categoryChip, text: categoryText, placeholder: "카테고리", onClear: onRemoveCategory)
6159
}

0 commit comments

Comments
 (0)