Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions libcxx/include/list
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down