From a647220f5c21369cfabec94f122769e0427958ae Mon Sep 17 00:00:00 2001 From: Nikolai Vavilov Date: Sat, 17 May 2025 23:54:06 +0300 Subject: [PATCH] ``: Remove unreachable code --- stl/inc/flat_map | 5 ----- 1 file changed, 5 deletions(-) diff --git a/stl/inc/flat_map b/stl/inc/flat_map index 8f8d632a950..1575edc71c8 100644 --- a/stl/inc/flat_map +++ b/stl/inc/flat_map @@ -849,11 +849,6 @@ protected: if (_Hint_order == weak_ordering::equivalent) { const auto _Dist = _Position._Key_it - _Begin._Key_it; - if constexpr (_IsUnique) { - if (_Position != _Begin && !_Key_compare(*_STD prev(_Position._Key_it), _Key_val)) { - return begin() + _Dist; - } - } { key_type _Key_to_insert(_STD forward<_OtherKey>(_Key_val)); mapped_type _Mapped_to_insert(_STD forward<_MappedArgTypes>(_Args)...);