Remove debug logging

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
Greg Pomerantz 2026-05-08 20:48:23 -04:00
parent 9c1e32c52a
commit 96b7c6dc97
2 changed files with 0 additions and 4 deletions

View File

@ -2,7 +2,6 @@ package ui
import ( import (
"image" "image"
"log"
"gioui.org/layout" "gioui.org/layout"
"gioui.org/op" "gioui.org/op"
@ -98,7 +97,6 @@ func (r *Renderer) drawStatusBar(gtx layout.Context, sb StatusBar) {
// Measure how wide "..." is, then find how many chars fit in availableWidth - ellipsisWidth // Measure how wide "..." is, then find how many chars fit in availableWidth - ellipsisWidth
spaceForText := availableWidth - ellipsisWidth spaceForText := availableWidth - ellipsisWidth
widths := charWidths(gtx, th.Shaper, displayFilename, r.theme.FontSize) widths := charWidths(gtx, th.Shaper, displayFilename, r.theme.FontSize)
log.Printf("drawStatusBar: filename=%q availableWidth=%d ellipsisWidth=%d spaceForText=%d widths=%v", displayFilename, availableWidth, ellipsisWidth, spaceForText, widths)
if len(widths) > 0 && widths[len(widths)-1] > spaceForText { if len(widths) > 0 && widths[len(widths)-1] > spaceForText {
// Find the largest index where the width fits // Find the largest index where the width fits
for i, w := range widths { for i, w := range widths {
@ -112,7 +110,6 @@ func (r *Renderer) drawStatusBar(gtx layout.Context, sb StatusBar) {
} }
} }
} }
log.Printf("drawStatusBar: final filename=%q", displayFilename)
// Position filename at (reg.X + 8, filenameLineY) // Position filename at (reg.X + 8, filenameLineY)
call1 := op.Offset(image.Point{X: int(reg.X + unit.Dp(8)), Y: int(filenameLineY)}).Push(gtx.Ops) call1 := op.Offset(image.Point{X: int(reg.X + unit.Dp(8)), Y: int(filenameLineY)}).Push(gtx.Ops)
@ -262,6 +259,5 @@ func charWidths(gtx layout.Context, shp *text.Shaper, str string, size unit.Sp)
cumWidth += adv cumWidth += adv
widths = append(widths, int(cumWidth>>6)) widths = append(widths, int(cumWidth>>6))
} }
log.Printf("charWidths: runeAdvances=%v widths=%v", runeAdvances, widths)
return widths return widths
} }

BIN
pad

Binary file not shown.