Skip to content

cleanup(spectrum): remove dead FFT accumulator state after #3031 (#3038). Principle IX.#3040

Merged
ten9876 merged 1 commit into
mainfrom
aetherclaude/issue-3038
May 24, 2026
Merged

cleanup(spectrum): remove dead FFT accumulator state after #3031 (#3038). Principle IX.#3040
ten9876 merged 1 commit into
mainfrom
aetherclaude/issue-3038

Conversation

@aethersdr-agent

Copy link
Copy Markdown
Contributor

Summary

Fixes #3038

What was changed

cleanup(spectrum): remove dead FFT accumulator state after #3031 (#3038). Principle IX.

Files modified

  • src/gui/SpectrumWidget.cpp
  • src/gui/SpectrumWidget.h
 src/gui/SpectrumWidget.cpp | 14 --------------
 src/gui/SpectrumWidget.h   | 12 ------------
 2 files changed, 26 deletions(-)

Generated by AetherClaude (automated agent for AetherSDR)


🤖 aethersdr-agent · cost: $10.0359 · model: claude-opus-4-7

…). Principle IX.

PR #3031 (TX waterfall scroll-rate parity) removed the debt-gated FFT row
emission and per-frame linear-power accumulator from
SpectrumWidget::pushWaterfallRow but intentionally left the supporting
state in place to keep the behavioural-fix diff focused. This commit
removes that now-dead state:

- m_lastFftRowMs, m_lastFftFrameMs, m_fftRowDebtMs (pacing timestamps for
  the removed debt gate)
- m_fftAccumPower, m_fftAccumCount (per-bin linear-power accumulator for
  the removed inter-frame averaging)
- SpectrumWidget::resetFftWaterfallAccumulator() and its 4 call sites in
  setWfLineDuration(), setTransmitting(true), setTxWaterfallSlice(), and
  clearTxWaterfallSlice() — each was a bare statement with no surrounding
  logic to untangle

Grep across the codebase confirmed the only writes to these members were
inside the reset function itself, and no read sites remained anywhere.
Pure dead-code removal — 26 LOC net, zero behavioural change. The TX
waterfall scroll-rate parity verified by #3031 covers the path.

Blast radius: removed symbols are private to SpectrumWidget; the
PreToolUse hook flagged risk_score=0.291 against SpectrumWidget.h/.cpp as
whole TUs (high-bw MainWindow callers exist) but those callers do not
touch the removed private members — confirmed by grep before edit.

@aethersdr-agent aethersdr-agent Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM — this is exactly the follow-up #3031 called out. Verified locally that no other call sites reference resetFftWaterfallAccumulator, m_fftAccumPower, m_fftAccumCount, m_lastFftRowMs, m_lastFftFrameMs, or m_fftRowDebtMs after these deletions, so the removal is clean and tightly scoped to the two files. No conventions or boundary concerns here (pure dead-state removal — no AppSettings, RAII, or error-handling surface touched). Thanks for the cleanup!


🤖 aethersdr-agent · cost: $4.4449 · model: claude-opus-4-7

@ten9876 ten9876 merged commit c3be923 into main May 24, 2026
5 checks passed
@ten9876 ten9876 deleted the aetherclaude/issue-3038 branch May 24, 2026 05:37
G6PWY-Chris pushed a commit to G6PWY-Chris/AetherSDR that referenced this pull request Jun 22, 2026
…3031 (aethersdr#3038). Principle IX. (aethersdr#3040)

## Summary

Fixes aethersdr#3038

### What was changed

cleanup(spectrum): remove dead FFT accumulator state after aethersdr#3031
(aethersdr#3038). Principle IX.

### Files modified

- `src/gui/SpectrumWidget.cpp`
- `src/gui/SpectrumWidget.h`

```
 src/gui/SpectrumWidget.cpp | 14 --------------
 src/gui/SpectrumWidget.h   | 12 ------------
 2 files changed, 26 deletions(-)
```

---
Generated by AetherClaude (automated agent for AetherSDR)

---
<sub>🤖 aethersdr-agent · cost: $10.0359 · model: claude-opus-4-7</sub>

Co-authored-by: aethersdr-agent[bot] <273844287+aethersdr-agent[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cleanup: remove dead FFT accumulator state after #3031

1 participant