From 40c48efc97e1692154f38e01ef1739bbef1e4728 Mon Sep 17 00:00:00 2001 From: Joseph Mingrone Date: Fri, 23 Oct 2020 04:29:32 +0000 Subject: www/chromium: Update to version 85.0.4183.121 Submitted by: cem, rene Obtained from: some patches from OpenBSD port --- www/chromium/files/patch-base_stl__util.h | 47 ------------------------------- 1 file changed, 47 deletions(-) delete mode 100644 www/chromium/files/patch-base_stl__util.h (limited to 'www/chromium/files/patch-base_stl__util.h') diff --git a/www/chromium/files/patch-base_stl__util.h b/www/chromium/files/patch-base_stl__util.h deleted file mode 100644 index b203dbd723ef..000000000000 --- a/www/chromium/files/patch-base_stl__util.h +++ /dev/null @@ -1,47 +0,0 @@ ---- base/stl_util.h.orig 2020-05-18 14:07:28 UTC -+++ base/stl_util.h -@@ -561,14 +561,6 @@ size_t EraseIf(std::vector& container, P - return removed; - } - --template --size_t Erase(std::forward_list& container, const Value& value) { -- // Unlike std::forward_list::remove, this function template accepts -- // heterogeneous types and does not force a conversion to the container's -- // value type before invoking the == operator. -- return EraseIf(container, [&](const T& cur) { return cur == value; }); --} -- - template - size_t EraseIf(std::forward_list& container, Predicate pred) { - // Note: std::forward_list does not have a size() API, thus we need to use the -@@ -580,10 +572,10 @@ size_t EraseIf(std::forward_list& contai - } - - template --size_t Erase(std::list& container, const Value& value) { -- // Unlike std::list::remove, this function template accepts heterogeneous -- // types and does not force a conversion to the container's value type before -- // invoking the == operator. -+size_t Erase(std::forward_list& container, const Value& value) { -+ // Unlike std::forward_list::remove, this function template accepts -+ // heterogeneous types and does not force a conversion to the container's -+ // value type before invoking the == operator. - return EraseIf(container, [&](const T& cur) { return cur == value; }); - } - -@@ -592,6 +584,14 @@ size_t EraseIf(std::list& container, Pre - size_t old_size = container.size(); - container.remove_if(pred); - return old_size - container.size(); -+} -+ -+template -+size_t Erase(std::list& container, const Value& value) { -+ // Unlike std::list::remove, this function template accepts heterogeneous -+ // types and does not force a conversion to the container's value type before -+ // invoking the == operator. -+ return EraseIf(container, [&](const T& cur) { return cur == value; }); - } - - template -- cgit v1.2.3