summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chris Manton <cmanton@google.com> 2024-03-26 14:52:51 -0700
committer Chris Manton <cmanton@google.com> 2024-04-02 21:02:19 +0000
commit2eda90f86fa15c131d70a1a205c526a52c941fe2 (patch)
tree684dab3ef49a55c9275246670ef8240cb364d2e2
parent82f829de91090a6f1f331d838b312a874d798ccd (diff)
Remove contextual_callback::InvokeIfNotEmpty
Bug: 331468810 Test: m . Flag: EXEMPT, Remove Unused API Change-Id: Ieb1adf2db318529317399d0ea082ad69e2253961
-rw-r--r--system/gd/common/contextual_callback.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/system/gd/common/contextual_callback.h b/system/gd/common/contextual_callback.h
index 81faecaadf..12f9b47564 100644
--- a/system/gd/common/contextual_callback.h
+++ b/system/gd/common/contextual_callback.h
@@ -52,12 +52,6 @@ class ContextualOnceCallback<R(Args...)> {
context_->Post(common::BindOnce(std::move(callback_), std::forward<Args>(args)...));
}
- void InvokeIfNotEmpty(Args... args) {
- if (context_ != nullptr) {
- context_->Post(common::BindOnce(std::move(callback_), std::forward<Args>(args)...));
- }
- }
-
bool IsEmpty() {
return context_ == nullptr;
}
@@ -100,12 +94,6 @@ class ContextualCallback<R(Args...)> {
context_->Post(common::BindOnce(callback_, std::forward<Args>(args)...));
}
- void InvokeIfNotEmpty(Args... args) {
- if (context_ != nullptr) {
- context_->Post(common::BindOnce(callback_, std::forward<Args>(args)...));
- }
- }
-
bool IsEmpty() {
return context_ == nullptr;
}