The insert
and erase
methods have many issues:
- They are unused
- They are confusing and hard to read, as they implement “special cases” for optimization, that isn’t needed
- They are broken (See #24231)
- Fixing them leads to mingw compile errors (See #24231 (comment))
Fix all issues by removing them