Commit b953d843 authored by tzik's avatar tzik Committed by Commit bot

Remove unused base::NthType

base::NthType was once added in a prototype of base::Bind refactoring
though it is no longer used in the final code.

BUG=433164

Review URL: https://codereview.chromium.org/897943003

Cr-Commit-Position: refs/heads/master@{#315337}
parent 0fd78680
...@@ -535,23 +535,6 @@ struct ConcatTypeListsImpl<TypeList<Types1...>, TypeList<Types2...>> { ...@@ -535,23 +535,6 @@ struct ConcatTypeListsImpl<TypeList<Types1...>, TypeList<Types2...>> {
template <typename List1, typename List2> template <typename List1, typename List2>
using ConcatTypeLists = typename ConcatTypeListsImpl<List1, List2>::Type; using ConcatTypeLists = typename ConcatTypeListsImpl<List1, List2>::Type;
template <size_t n, typename List>
struct NthTypeImpl;
template <size_t n, typename T, typename... Types>
struct NthTypeImpl<n, TypeList<T, Types...>>
: NthTypeImpl<n - 1, TypeList<Types...>> {
};
template <typename T, typename... Types>
struct NthTypeImpl<0, TypeList<T, Types...>> {
typedef T Type;
};
// A type-level function that extracts |n|th type from a TypeList.
template <size_t n, typename List>
using NthType = typename NthTypeImpl<n, List>::Type;
// Used for MakeFunctionType implementation. // Used for MakeFunctionType implementation.
template <typename R, typename ArgList> template <typename R, typename ArgList>
struct MakeFunctionTypeImpl; struct MakeFunctionTypeImpl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment