Commit e0f9de60 authored by Etienne Pierre-doray's avatar Etienne Pierre-doray Committed by Commit Bot

[TaskScheduler]: Cleanup AssertBlockingAllowedDeprecated.

Migration is complete! Delete AssertBlockingAllowedDeprecated().

Bug: 903957
Change-Id: I683e879f8d1f07a1e38d2fa6bb1423101699fb68
Reviewed-on: https://chromium-review.googlesource.com/c/1474826
Commit-Queue: Etienne Pierre-Doray <etiennep@chromium.org>
Commit-Queue: François Doray <fdoray@chromium.org>
Reviewed-by: default avatarFrançois Doray <fdoray@chromium.org>
Cr-Commit-Position: refs/heads/master@{#632680}
parent 8c48c545
...@@ -41,10 +41,6 @@ void AssertBlockingAllowed() { ...@@ -41,10 +41,6 @@ void AssertBlockingAllowed() {
} // namespace internal } // namespace internal
void AssertBlockingAllowedDeprecated() {
internal::AssertBlockingAllowed();
}
void DisallowBlocking() { void DisallowBlocking() {
g_blocking_disallowed.Get().Set(true); g_blocking_disallowed.Get().Set(true);
} }
......
...@@ -291,14 +291,6 @@ INLINE_IF_DCHECK_IS_OFF void AssertBlockingAllowed() ...@@ -291,14 +291,6 @@ INLINE_IF_DCHECK_IS_OFF void AssertBlockingAllowed()
} // namespace internal } // namespace internal
// Asserts that blocking calls are allowed in the current scope.
//
// DEPRECATED: Use ScopedBlockingCall, which serves as a precise annotation of
// the scope that may/will block.
// TODO(etiennep): Complete migration and delete this method.
INLINE_IF_DCHECK_IS_OFF void AssertBlockingAllowedDeprecated()
EMPTY_BODY_IF_DCHECK_IS_OFF;
// Disallows blocking on the current thread. // Disallows blocking on the current thread.
INLINE_IF_DCHECK_IS_OFF void DisallowBlocking() EMPTY_BODY_IF_DCHECK_IS_OFF; INLINE_IF_DCHECK_IS_OFF void DisallowBlocking() EMPTY_BODY_IF_DCHECK_IS_OFF;
......
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