[libc++][NFC] Remove dead code in <list> (#65651)

I came across this function (which is never used) while doing other
changes. It should be safe to remove since it's not used anywhere.
This commit is contained in:
Louis Dionne 2023-09-08 08:52:02 -04:00 committed by GitHub
parent 61cecf641f
commit 7d7dcc1f25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1779,17 +1779,6 @@ list<_Tp, _Alloc>::splice(const_iterator __p, list& __c, const_iterator __i)
}
}
template <class _Iterator>
_LIBCPP_HIDE_FROM_ABI
bool __iterator_in_range(_Iterator __first, _Iterator __last, _Iterator __it) {
for (_Iterator __p = __first; __p != __last; ++__p) {
if (__p == __it) {
return true;
}
}
return false;
}
template <class _Tp, class _Alloc>
void
list<_Tp, _Alloc>::splice(const_iterator __p, list& __c, const_iterator __f, const_iterator __l)