Commit beeae203 authored by avi's avatar avi Committed by Commit bot

Remove Autofill's ContainsNonNullEntryForNonNullKey.

Its last caller was removed in r306479.

BUG=556939

Review-Url: https://codereview.chromium.org/2586413002
Cr-Commit-Position: refs/heads/master@{#439814}
parent 0c55868e
...@@ -558,19 +558,6 @@ bool FillFormOnPasswordReceived( ...@@ -558,19 +558,6 @@ bool FillFormOnPasswordReceived(
field_value_and_properties_map, registration_callback, logger); field_value_and_properties_map, registration_callback, logger);
} }
// Takes a |map| with pointers as keys and linked_ptr as values, and returns
// true if |key| is not NULL and |map| contains a non-NULL entry for |key|.
// Makes sure not to create an entry as a side effect of using the operator [].
template <class Key, class Value>
bool ContainsNonNullEntryForNonNullKey(
const std::map<Key*, linked_ptr<Value>>& map,
Key* key) {
if (!key)
return false;
auto it = map.find(key);
return it != map.end() && it->second.get();
}
} // namespace } // namespace
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment