diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-06 02:37:17 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-06 02:37:17 +0000 |
commit | dcde767184d0ab222f846123bc397738b3bcd8f7 (patch) | |
tree | 0f9a8297a8ef586214a09e2c53e9c300a31f914a /base | |
parent | 651cea61d7994567ddd4db73012d6c9f737efee4 (diff) | |
download | chromium_src-dcde767184d0ab222f846123bc397738b3bcd8f7.zip chromium_src-dcde767184d0ab222f846123bc397738b3bcd8f7.tar.gz chromium_src-dcde767184d0ab222f846123bc397738b3bcd8f7.tar.bz2 |
Change over IgnoreReturn to IgnoreResult. remove IgnoreReturn.
BUG=98919
TEST=existing
Review URL: http://codereview.chromium.org/9111032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116631 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/bind_helpers.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/base/bind_helpers.h b/base/bind_helpers.h index df8cf82..af6ff26 100644 --- a/base/bind_helpers.h +++ b/base/bind_helpers.h @@ -130,7 +130,6 @@ #pragma once #include "base/basictypes.h" -#include "base/bind.h" #include "base/callback.h" #include "base/memory/weak_ptr.h" #include "base/template_util.h" @@ -462,11 +461,6 @@ struct MaybeRefcount<true, const T*> { static void Release(const T* o) { o->Release(); } }; -template <typename R> -void VoidReturnAdapter(Callback<R(void)> callback) { - callback.Run(); -} - // IsWeakMethod is a helper that determine if we are binding a WeakPtr<> to a // method. It is used internally by Bind() to select the correct // InvokeHelper that will no-op itself in the event the WeakPtr<> for @@ -512,12 +506,6 @@ static inline internal::PassedWrapper<T> Passed(T* scoper) { return internal::PassedWrapper<T>(scoper->Pass()); } -// -- DEPRECATED -- Use IgnoreResult instead. -template <typename R> -static inline Closure IgnoreReturn(Callback<R(void)> callback) { - return Bind(&internal::VoidReturnAdapter<R>, callback); -} - template <typename T> static inline internal::IgnoreResultHelper<T> IgnoreResult(T data) { return internal::IgnoreResultHelper<T>(data); |