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

Commit 93880172 authored by Jordan R Abrahams-Whitehead's avatar Jordan R Abrahams-Whitehead Committed by Jordan Abrahams-Whitehead
Browse files

floss: Remove noop std::move(task_)

Moves, in general, are semantically equivalent to a static
cast to an xvalue. Unless there's some std::move overrides
here that really shouldn't happen, this std::move(task_) is
actually a noop.

This is currently giving a -Wunused-value compiler error,
and needs to be updated for the new LLVM roll to r458507.

This change is required for LLVM roll r458507 in ChromeOS.

Bug: 231351802
Test: CQ
Test: emerge-amd64-generic net-wireless/floss # with llvm-next
Tag: #floss

Change-Id: I893217cf0966a7a62e30f4bd2c0a46791e9f016b
parent 9aa2e68f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -104,7 +104,6 @@ void OnceTimer::CancelHelper(std::promise<void> promise) {
void OnceTimer::CancelClosure(std::promise<void> promise) {
  message_loop_thread_ = nullptr;
  task_wrapper_.Cancel();
  std::move(task_);
  delay_ = base::TimeDelta();
  promise.set_value();
}