Simplify base::internal::is_sorted_and_unique.
The first part currently checks: a[0] <= a[1] <= ... <= a[n-1] And the second checks: a[0] < a[1] < ... < a[n-1] But the second implies the first, so the first can be removed. Change-Id: Icfa9b65e1dddb4c9d7b0f0541af6e4a35d220ae4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2606126 Auto-Submit: Jeremy Roman <jbroman@chromium.org> Commit-Queue: Jan Wilken Dörrie <jdoerrie@chromium.org> Reviewed-by:Jan Wilken Dörrie <jdoerrie@chromium.org> Cr-Commit-Position: refs/heads/master@{#839851}
Showing
Please register or sign in to comment