From 810be77412f473ac014848b91b22125eea44b67a Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 20 Jun 2020 11:45:52 +0200 Subject: [PATCH] widget: remove unused parameter from Editor.moveCoord Signed-off-by: Elias Naur --- widget/editor.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/widget/editor.go b/widget/editor.go index 6223ebc9..f89372fb 100644 --- a/widget/editor.go +++ b/widget/editor.go @@ -143,7 +143,7 @@ func (e *Editor) processPointer(gtx layout.Context) { case evt.Type == gesture.TypePress && evt.Source == pointer.Mouse, evt.Type == gesture.TypeClick && evt.Source == pointer.Touch: e.blinkStart = gtx.Now - e.moveCoord(gtx.Metric, image.Point{ + e.moveCoord(image.Point{ X: int(math.Round(float64(evt.Position.X))), Y: int(math.Round(float64(evt.Position.Y))), }) @@ -426,7 +426,7 @@ func (e *Editor) scrollAbs(x, y int) { } } -func (e *Editor) moveCoord(c unit.Metric, pos image.Point) { +func (e *Editor) moveCoord(pos image.Point) { var ( prevDesc fixed.Int26_6 carLine int