Skip to content

Commit f6bd67a

Browse files
ezbrcopybara-github
authored andcommitted
In AssertSameContainer, remove the logic checking for whether the iterators are from SOO tables or not since we don't use it to generate a more informative debug message.
I think we'll end up falling back to the "Comparing non-end() iterators from different hashtables." message, which is slightly more informative anyways. PiperOrigin-RevId: 781995639 Change-Id: I452f2b132a9725a5af87e7a1aaf6c4b295d29752
1 parent f76c21f commit f6bd67a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

absl/container/internal/raw_hash_set.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,13 +1377,6 @@ inline void AssertSameContainer(const ctrl_t* ctrl_a, const ctrl_t* ctrl_b,
13771377

13781378
if (SwisstableGenerationsEnabled()) {
13791379
if (ABSL_PREDICT_TRUE(generation_ptr_a == generation_ptr_b)) return;
1380-
// Users don't need to know whether the tables are SOO so don't mention SOO
1381-
// in the debug message.
1382-
const bool a_is_soo = IsSooControl(ctrl_a);
1383-
const bool b_is_soo = IsSooControl(ctrl_b);
1384-
fail_if(a_is_soo != b_is_soo || (a_is_soo && b_is_soo),
1385-
"Comparing iterators from different hashtables.");
1386-
13871380
const bool a_is_empty = IsEmptyGeneration(generation_ptr_a);
13881381
const bool b_is_empty = IsEmptyGeneration(generation_ptr_b);
13891382
fail_if(a_is_empty != b_is_empty,

0 commit comments

Comments
 (0)