mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
all: remove a couple of unused parameters
Both from unexported functions, to keep the change low-risk. Found via unparam. Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
+2
-2
@@ -329,7 +329,7 @@ func (a *ActionButton) Layout(c ui.Config, q input.Queue, ops *ui.Ops, cs layout
|
||||
cs = f.Rigid()
|
||||
in := layout.Inset{Top: ui.Dp(4)}
|
||||
cs = in.Begin(c, ops, cs)
|
||||
dims := fab(ops, cs, a.sendIco.image(c), theme.brand, c.Px(ui.Dp(56)))
|
||||
dims := fab(ops, a.sendIco.image(c), theme.brand, c.Px(ui.Dp(56)))
|
||||
pointer.EllipseAreaOp{Rect: image.Rectangle{Max: dims.Size}}.Add(ops)
|
||||
dims = in.End(dims)
|
||||
return f.Layout(f.End(dims))
|
||||
@@ -463,7 +463,7 @@ func (c *clipCircle) End(dims layout.Dimens) layout.Dimens {
|
||||
return dims
|
||||
}
|
||||
|
||||
func fab(ops *ui.Ops, cs layout.Constraints, ico image.Image, mat ui.MacroOp, size int) layout.Dimens {
|
||||
func fab(ops *ui.Ops, ico image.Image, mat ui.MacroOp, size int) layout.Dimens {
|
||||
dp := image.Point{X: (size - ico.Bounds().Dx()) / 2, Y: (size - ico.Bounds().Dy()) / 2}
|
||||
dims := image.Point{X: size, Y: size}
|
||||
rr := float32(size) * .5
|
||||
|
||||
+2
-2
@@ -68,7 +68,7 @@ func buildIOS(tmpDir, target string, bi *buildInfo) error {
|
||||
if err := exeIOS(tmpDir, target, appDir, bi); err != nil {
|
||||
return err
|
||||
}
|
||||
if err := signIOS(bi, tmpDir, appDir, out); err != nil {
|
||||
if err := signIOS(bi, tmpDir, appDir); err != nil {
|
||||
return err
|
||||
}
|
||||
return zipDir(out, tmpDir, "Payload")
|
||||
@@ -77,7 +77,7 @@ func buildIOS(tmpDir, target string, bi *buildInfo) error {
|
||||
}
|
||||
}
|
||||
|
||||
func signIOS(bi *buildInfo, tmpDir, app, ipa string) error {
|
||||
func signIOS(bi *buildInfo, tmpDir, app string) error {
|
||||
home, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user