[tts] clang-tidy clean (unused var)
Remove an unused local variable, bringing clang-tidy (with
default rule set) to zero warnings.
Test: build, CQ, "git-file-tidy --all" in garnet/bin/tts
Change-Id: Id27913525f71bc03e8a64a7f98ecd8ecca865c77
diff --git a/bin/tts/tts_speaker.cc b/bin/tts/tts_speaker.cc
index 05f9017..365633f 100644
--- a/bin/tts/tts_speaker.cc
+++ b/bin/tts/tts_speaker.cc
@@ -95,7 +95,7 @@
return;
// Figure out how much audio we have synthesized, but not given to the audio
- // render yet, and hand it off to the renderer. There are three (slightly)
+ // renderer yet, and hand it off to the renderer. There are three (slightly)
// special cases we need to consider.
//
// 1) We may not permit our payloads to span the ring wrap point. All
@@ -112,7 +112,6 @@
bytes_to_send = ComputeTxPending();
}
- bool first_payload = !clock_started_;
bool eos = synthesis_complete_.load();
uint64_t bytes_till_low_water = eos ? 0 : bytes_to_send - kLowWaterBytes;
uint64_t bytes_till_ring_wrap = shared_buf_.size() - tx_ptr_;
@@ -134,7 +133,6 @@
pkt.payload_offset = tx_ptr_;
pkt.payload_size = todo;
- first_payload = false;
tx_ptr_ += todo;
if (tx_ptr_ >= shared_buf_.size()) {
FXL_DCHECK(tx_ptr_ == shared_buf_.size());