Skip to content

Commit e4915ef

Browse files
committed
Remove func PainterWidthHeightOption - Just set when building PainterOptions struct
1 parent 50441c5 commit e4915ef

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

painter.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,18 +124,6 @@ func PainterThemeOption(theme ColorPalette) PainterOption {
124124
}
125125
}
126126

127-
// PainterWidthHeightOption set width or height of draw painter
128-
func PainterWidthHeightOption(width, height int) PainterOption {
129-
return func(p *Painter) {
130-
if width > 0 {
131-
p.box.Right = p.box.Left + width
132-
}
133-
if height > 0 {
134-
p.box.Bottom = p.box.Top + height
135-
}
136-
}
137-
}
138-
139127
// newPainter creates a painter
140128
func newPainter(opts PainterOptions, opt ...PainterOption) (*Painter, error) {
141129
if opts.Width <= 0 || opts.Height <= 0 {

0 commit comments

Comments
 (0)