         })
     }
     
-    func readDatabaseAgain(notification: NSNotification) {
-        mapView.removeAnnotations(mapView.annotations)
-        readDatabase()
-    }
-    
-    func reloadAnnotations(notification: NSNotification) {
-        mapView.removeAnnotations(mapView.annotations)
-        
-        displayedDeals = notification.object as! [Deal]
-        addAllAnnotations()
-    }
-    
     private func addAllAnnotations() {
         for deal in displayedDeals {
             addAnnotation(deal: deal)

            let uid = snapshotDict["uid"]
            let currentDate = Date().timeIntervalSince1970
            
            if date as! Double >= currentDate {
                self.deals.append(Deal(nameDeal: nameDeal! as! String, nameCompany: nameCompany! as! String, longitude: longitude! as! Double, latitude: latitude! as! Double, category: category! as! String, date: date as! Double, uid: uid as! String))
                self.displayedDeals.append(Deal(nameDeal: nameDeal! as! String, nameCompany: nameCompany! as! String, longitude: longitude! as! Double, latitude: latitude! as! Double, category: category! as! String, date: date as! Double, uid: uid as! String))
                self.addAllAnnotations()
            } else {
                // delete deal in Firebase
                self.ref.child("deals").child(nameDeal as! String).removeValue { (error, ref) in
                    if error != nil {
                        print("error \(error)")

    var annotationTitle = String()
    var annotationSubtitle = String()
    
    // MARK: Action.
    @IBAction func signOutDidTouch(_ sender: Any) {
        let firebaseAuth = FIRAuth.auth()
        do {
