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
diff --git a/absl/container/internal/raw_hash_set.h b/absl/container/internal/raw_hash_set.h
index 1cb336e..3dd7893 100644
--- a/absl/container/internal/raw_hash_set.h
+++ b/absl/container/internal/raw_hash_set.h
@@ -1377,13 +1377,6 @@
if (SwisstableGenerationsEnabled()) {
if (ABSL_PREDICT_TRUE(generation_ptr_a == generation_ptr_b)) return;
- // Users don't need to know whether the tables are SOO so don't mention SOO
- // in the debug message.
- const bool a_is_soo = IsSooControl(ctrl_a);
- const bool b_is_soo = IsSooControl(ctrl_b);
- fail_if(a_is_soo != b_is_soo || (a_is_soo && b_is_soo),
- "Comparing iterators from different hashtables.");
-
const bool a_is_empty = IsEmptyGeneration(generation_ptr_a);
const bool b_is_empty = IsEmptyGeneration(generation_ptr_b);
fail_if(a_is_empty != b_is_empty,