Skip to content

Commit

Permalink
chore: remove unused FindByID helper (#26826)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Dec 6, 2020
1 parent 7672aa9 commit 228a184
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions shell/browser/api/electron_api_screen.cc
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@ gin::WrapperInfo Screen::kWrapperInfo = {gin::kEmbedderNativeGin};

namespace {

// Find an item in container according to its ID.
template <class T>
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<std::string> MetricsToArray(uint32_t metrics) {
std::vector<std::string> array;
Expand Down

0 comments on commit 228a184

Please sign in to comment.