diff --git a/ContactsApp/ContactsViewController.swift b/ContactsApp/ContactsViewController.swift index 2992dbd..a25ce11 100644 --- a/ContactsApp/ContactsViewController.swift +++ b/ContactsApp/ContactsViewController.swift @@ -159,12 +159,6 @@ extension ContactsViewController: UISearchBarDelegate, UISearchDisplayDelegate, self.searchBar.showsCancelButton = true self.searchBar.resignFirstResponder() } - - func searchBarCancelButtonClicked(_ searchBar: UISearchBar) { - self.searchBar.text = "" - self.searchBarTextDidEndEditing(searchBar) - self.searchBar.resignFirstResponder() - } func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) { print(searchText)