summaryrefslogtreecommitdiffstats
path: root/libcxx/include/__functional_base
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-06-06 06:42:27 +0000
committerEric Fiselier <eric@efcs.ca>2018-06-06 06:42:27 +0000
commitcb5b004a9b2ed3e3d0d1636628549bfc0fbe6716 (patch)
treefa104d2fd23e4a56e853f5c979216625363dfcf0 /libcxx/include/__functional_base
parentfc9b29bd617922a9c6fc3b602e075b353f5c2395 (diff)
downloadbcm5719-llvm-cb5b004a9b2ed3e3d0d1636628549bfc0fbe6716.tar.gz
bcm5719-llvm-cb5b004a9b2ed3e3d0d1636628549bfc0fbe6716.zip
Remove unused code from __functional_base. NFC.
Patch from Arthur O'Dwyer. `__user_alloc_construct_impl` is used by <experimental/memory_resource>, but this `__user_alloc_construct` is never used. Also, `<experimental/memory_resource>` doesn't need a full definition of `std::tuple`; just the forward declaration in `<__tuple>` will suffice. Reviewed as https://reviews.llvm.org/D46806 llvm-svn: 334069
Diffstat (limited to 'libcxx/include/__functional_base')
-rw-r--r--libcxx/include/__functional_base10
1 files changed, 0 insertions, 10 deletions
diff --git a/libcxx/include/__functional_base b/libcxx/include/__functional_base
index 12af4dc9675..1a90bd6280f 100644
--- a/libcxx/include/__functional_base
+++ b/libcxx/include/__functional_base
@@ -646,16 +646,6 @@ void __user_alloc_construct_impl (integral_constant<int, 2>, _Tp *__storage, con
new (__storage) _Tp (_VSTD::forward<_Args>(__args)..., __a);
}
-// FIXME: Theis should have a version which takes a non-const alloc.
-template <class _Tp, class _Allocator, class... _Args>
-inline _LIBCPP_INLINE_VISIBILITY
-void __user_alloc_construct (_Tp *__storage, const _Allocator &__a, _Args &&... __args)
-{
- __user_alloc_construct_impl(
- __uses_alloc_ctor<_Tp, _Allocator>(),
- __storage, __a, _VSTD::forward<_Args>(__args)...
- );
-}
#endif // _LIBCPP_CXX03_LANG
_LIBCPP_END_NAMESPACE_STD
OpenPOWER on IntegriCloud