chore: remove unused FindByID helper (#26826)

This commit is contained in:
Shelley Vohr 2020-12-06 09:33:02 -08:00 committed by GitHub
parent 7672aa9525
commit 228a184b48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,15 +33,6 @@ gin::WrapperInfo Screen::kWrapperInfo = {gin::kEmbedderNativeGin};
namespace { 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. // Convert the changed_metrics bitmask to string array.
std::vector<std::string> MetricsToArray(uint32_t metrics) { std::vector<std::string> MetricsToArray(uint32_t metrics) {
std::vector<std::string> array; std::vector<std::string> array;