summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/ADT/STLExtras.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/ADT/STLExtras.h')
-rw-r--r--llvm/include/llvm/ADT/STLExtras.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index 430707cbd79..274933bc520 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -1573,14 +1573,6 @@ template <class Ptr> auto to_address(const Ptr &P) -> decltype(P.operator->()) {
}
template <class T> constexpr T *to_address(T *P) { return P; }
-template <typename R>
-auto index(R &&TheRange,
- typename std::iterator_traits<detail::IterOfRange<R>>::difference_type N)
- -> decltype(TheRange.begin()[N]) {
- assert(N < TheRange.end() - TheRange.begin() && "Index out of range!");
- return TheRange.begin()[N];
-}
-
} // end namespace llvm
#endif // LLVM_ADT_STLEXTRAS_H
OpenPOWER on IntegriCloud