diff options
author | tzik <tzik@chromium.org> | 2015-02-09 09:56:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-09 17:57:55 +0000 |
commit | b953d843e9d8b2086e9b093c9a45003e38fd944f (patch) | |
tree | d52f21629d737f480276555e20662635caa536d3 /base/bind_helpers.h | |
parent | 0fd78680ee76c85d5cf9eec9c15a30a99d0520a3 (diff) | |
download | chromium_src-b953d843e9d8b2086e9b093c9a45003e38fd944f.zip chromium_src-b953d843e9d8b2086e9b093c9a45003e38fd944f.tar.gz chromium_src-b953d843e9d8b2086e9b093c9a45003e38fd944f.tar.bz2 |
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}
Diffstat (limited to 'base/bind_helpers.h')
-rw-r--r-- | base/bind_helpers.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/base/bind_helpers.h b/base/bind_helpers.h index f8e89bd..c49b5b81 100644 --- a/base/bind_helpers.h +++ b/base/bind_helpers.h @@ -535,23 +535,6 @@ struct ConcatTypeListsImpl<TypeList<Types1...>, TypeList<Types2...>> { template <typename List1, typename List2> 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. template <typename R, typename ArgList> struct MakeFunctionTypeImpl; |