diff --git a/shell/browser/api/electron_api_screen.cc b/shell/browser/api/electron_api_screen.cc index 13c9a39786bb..af6fb206df59 100644 --- a/shell/browser/api/electron_api_screen.cc +++ b/shell/browser/api/electron_api_screen.cc @@ -33,15 +33,6 @@ gin::WrapperInfo Screen::kWrapperInfo = {gin::kEmbedderNativeGin}; namespace { -// Find an item in container according to its ID. -template -typename T::iterator FindById(T* container, int id) { - auto predicate = [id](const typename T::value_type& item) -> bool { - return item.id() == id; - }; - return std::find_if(container->begin(), container->end(), predicate); -} - // Convert the changed_metrics bitmask to string array. std::vector MetricsToArray(uint32_t metrics) { std::vector array;