mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-19 13:16:46 +00:00
[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:
parent
61cecf641f
commit
7d7dcc1f25
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user