Skip to content

Commit

Permalink
delete: 중복 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
MaraMincho committed Jan 9, 2024
1 parent 5272a33 commit acde157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ struct KalmanFilter {
// 우리가 궁금한건 위도와 경도이기 때문에 필요한 부분만 기재했습니다.

var prevTime: Date

init(initLocation: CLLocation) {
x = .init(initLocation.coordinate.latitude, 0, initLocation.coordinate.longitude, 0)
prevTime = initLocation.timestamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,14 +206,10 @@ final class WorkoutRouteMapViewController: UIViewController {

self?.locations
.forEach { location in
let currentCLLocationCoordinator2D = CLLocationCoordinate2D(
latitude: location.latitude,
longitude: location.longitude
)

// snapshot에서 현재 위도 경도에 대한 데이터가 어느 CGPoint에 있는지 찾아내고, 이를 Polyline을 그립니다.
context.cgContext.addLine(to: snapshot.point(for: currentCLLocationCoordinator2D))
context.cgContext.move(to: snapshot.point(for: currentCLLocationCoordinator2D))
context.cgContext.addLine(to: snapshot.point(for: location))
context.cgContext.move(to: snapshot.point(for: location))
}

// 현재 컨텍스트 에서 여태 그린 Path를 적용합니다.
Expand Down

0 comments on commit acde157

Please sign in to comment.