From 095b58afcf3776f32fe14fc9872921d170886d68 Mon Sep 17 00:00:00 2001 From: PJ Date: Sat, 30 May 2026 21:48:17 +0530 Subject: [PATCH] refactor(trace): drop WriteScreenshotAfter Only one screenshot per step is captured now (concurrently with hierarchy after settle), so the -after.png variant is unused. --- internal/trace/writer.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/trace/writer.go b/internal/trace/writer.go index bb17c5f..ea1f14c 100644 --- a/internal/trace/writer.go +++ b/internal/trace/writer.go @@ -125,13 +125,6 @@ func (w *Writer) WriteScreenshot(stepIndex int, png []byte) error { return w.writePNG(fmt.Sprintf("step-%05d.png", stepIndex), png) } -// WriteScreenshotAfter writes the post-action screenshot for a step. -// Callers use this after applyAction + waitForIdle so the UI can show a -// before/after pair. -func (w *Writer) WriteScreenshotAfter(stepIndex int, png []byte) error { - return w.writePNG(fmt.Sprintf("step-%05d-after.png", stepIndex), png) -} - func (w *Writer) writePNG(name string, png []byte) error { if len(png) == 0 { return nil