Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2eda90f8 authored by Chris Manton's avatar Chris Manton
Browse files

Remove contextual_callback::InvokeIfNotEmpty

Bug: 331468810
Test: m .
Flag: EXEMPT, Remove Unused API
Change-Id: Ieb1adf2db318529317399d0ea082ad69e2253961
parent 82f829de
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -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;
  }