Skip to content

Commit

Permalink
Remove an unused Unwrap overload and HasNonConstReferenceItem
Browse files Browse the repository at this point in the history
BUG=554299

Review-Url: https://codereview.chromium.org/2103883002
Cr-Commit-Position: refs/heads/master@{#402716}
  • Loading branch information
tzik authored and Commit bot committed Jun 29, 2016
1 parent 902ddfe commit f2f8ec1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
5 changes: 0 additions & 5 deletions base/bind_helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -440,11 +440,6 @@ T* Unwrap(const RetainedRefWrapper<T>& o) {
return o.get();
}

template <typename T>
const WeakPtr<T>& Unwrap(const WeakPtr<T>& o) {
return o;
}

template <typename T>
T* Unwrap(const OwnedWrapper<T>& o) {
return o.get();
Expand Down
16 changes: 0 additions & 16 deletions base/bind_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,22 +64,6 @@ namespace internal {
// into the Bind() system, doing most of the type resolution.
// There are ARITY BindState types.

// HasNonConstReferenceParam selects true_type when any of the parameters in
// |Sig| is a non-const reference.
// Implementation note: This non-specialized case handles zero-arity case only.
// Non-zero-arity cases should be handled by the specialization below.
template <typename List>
struct HasNonConstReferenceItem : std::false_type {};

// Implementation note: Select true_type if the first parameter is a non-const
// reference. Otherwise, skip the first parameter and check rest of parameters
// recursively.
template <typename T, typename... Args>
struct HasNonConstReferenceItem<TypeList<T, Args...>>
: std::conditional<is_non_const_reference<T>::value,
std::true_type,
HasNonConstReferenceItem<TypeList<Args...>>>::type {};

// HasRefCountedTypeAsRawPtr selects true_type when any of the |Args| is a raw
// pointer to a RefCounted type.
// Implementation note: This non-specialized case handles zero-arity case only.
Expand Down

0 comments on commit f2f8ec1

Please sign in to comment.