Skip to content

Commit

Permalink
Remove print statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jill Cardamon committed Oct 3, 2022
1 parent 3ec0e3f commit c7b7d3b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions Sources/MapboxCoreNavigation/NavigationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -585,8 +585,6 @@ extension MapboxNavigationService: CLLocationManagerDelegate {
public func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading) {
// Check if device orientation has changed and inform the location provider accordingly.
updateHeadingForCurrentDeviceOrientation()
print("!!! device orientation: \(UIDevice.current.orientation)")
updateHeadingForCurrentDeviceOrientation()
router.locationManager?(manager, didUpdateHeading: newHeading)
}

Expand Down
9 changes: 0 additions & 9 deletions Sources/MapboxNavigation/NavigationViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,6 @@ open class NavigationViewController: UIViewController, NavigationStatusPresenter
navigationMapView.navigationCamera.viewportDataSource = NavigationViewportDataSource(navigationMapView.mapView,
viewportDataSourceType: .active)
navigationMapView.navigationCamera.follow()

let viewportDataSource = navigationMapView.navigationCamera.viewportDataSource as? NavigationViewportDataSource
print("!!! orientation: \(navigationService.locationManager.headingOrientation)")
// print("!!! device orientation: \(UIDevice.current.orientation)")
// if navigationService.locationManager.headingOrientation == .landscapeLeft {
// print("!!! landscape left")
// } else if navigationService.locationManager.headingOrientation == .landscapeRight {
// print("!!! landscape right")
// }
}

// In case if `NavigationMapView` instance was injected - do not set initial camera options.
Expand Down

0 comments on commit c7b7d3b

Please sign in to comment.