         }
         return snapshot
     }
-    
-    private func cellStyleForTraitCollection(_ traitCollection: UITraitCollection) -> CountyCellDisplayStyle {
-        return traitCollection.horizontalSizeClass == .regular ? .grid : .table
-    }
-    
-    @objc private func reloadData() {
-        dataSource.apply(snapshotForCurrentState(), animatingDifferences: false)
-    }
 }
 
 // MARK: UICollectionViewDelegateFlowLayout

            collectionView.bottomAnchor.constraint(equalTo: view.bottomAnchor)
        ])
        
        dataSource.apply(snapshotForCurrentState(), animatingDifferences: false)
        NotificationCenter.default.addObserver(self, selector: #selector(reloadData), name: FavouritesController.favouriteCountiesDidChangeNotification, object: FavouritesController.shared)
    }
    

    
    private func updateSearchResults(forSearchText searchText: String?) {
        spotlightSearchController.search(withQuery: SpotlightSearchController.Query(queryString: searchText ?? "", filter: style.searchQueryFilter)) { [unowned self] in
            self.reloadData()
        }
    }
}
