Skip to content

Commit 7d7dcc1

Browse files
authored
[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.
1 parent 61cecf6 commit 7d7dcc1

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

libcxx/include/list

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,17 +1779,6 @@ list<_Tp, _Alloc>::splice(const_iterator __p, list& __c, const_iterator __i)
17791779
}
17801780
}
17811781

1782-
template <class _Iterator>
1783-
_LIBCPP_HIDE_FROM_ABI
1784-
bool __iterator_in_range(_Iterator __first, _Iterator __last, _Iterator __it) {
1785-
for (_Iterator __p = __first; __p != __last; ++__p) {
1786-
if (__p == __it) {
1787-
return true;
1788-
}
1789-
}
1790-
return false;
1791-
}
1792-
17931782
template <class _Tp, class _Alloc>
17941783
void
17951784
list<_Tp, _Alloc>::splice(const_iterator __p, list& __c, const_iterator __f, const_iterator __l)

0 commit comments

Comments
 (0)