 
         self.dismiss(animated: true, completion: nil)
     }
-
-    @objc func didTapCurrentButton() {
-        self.mapView.setCenter(self.mapView.userLocation.coordinate, animated: true)
-        self.currentButton.isEnabled = false
-    }
 }
 
 // MARK: - MKMapView delegate
 
 extension LocationPickerController: MKMapViewDelegate {
-    
-    public func mapView(_ mapView: MKMapView, regionWillChangeAnimated animated: Bool) {
-        guard self.isInitialized else {
-            return
-        }
-        self.currentButton.isEnabled = true
-    }
-    
+
     public func mapView(_ mapView: MKMapView, regionDidChangeAnimated animated: Bool) {
         guard self.isInitialized else {
             return


    fileprivate var mapView: MKMapView!
    fileprivate var pointAnnotation: MKPointAnnotation!
    fileprivate var currentButton: UIBarButtonItem!

    fileprivate let locationManager: CLLocationManager = CLLocationManager()


                                             action: #selector(LocationPickerController.didTapDoneButton))
        self.navigationItem.rightBarButtonItem = doneButtonItem

        let flexibleButton = UIBarButtonItem(barButtonSystemItem: .flexibleSpace,
                                             target: nil, action: nil)
        self.userTrackingButton = MKUserTrackingBarButtonItem(mapView: self.mapView)
        self.toolbarItems = [self.userTrackingButton, flexibleButton]
        self.navigationController?.isToolbarHidden = false

        self.locationManager.delegate = self
