Skip to content

Commit 590655e

Browse files
committed
Remove preferences leftover in gen.go
1 parent 547e667 commit 590655e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

data/binding/gen.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ func (s *stringTo{{ .Name }}) DataChanged() {
301301
type bindValues struct {
302302
Name, Type, Default string
303303
Format, Since string
304-
SupportsPreferences bool
305304
FromString, ToString string // function names...
306305
Comparator string // comparator function name
307306
FromInt, ToInt string // function names...
@@ -358,12 +357,12 @@ func internalIntToFloat(val int) (float64, error) {
358357
toInt := template.Must(template.New("toInt").Parse(toIntTemplate))
359358
toString := template.Must(template.New("toString").Parse(toStringTemplate))
360359
binds := []bindValues{
361-
{Name: "Bool", Type: "bool", Default: "false", Format: "%t", SupportsPreferences: true},
360+
{Name: "Bool", Type: "bool", Default: "false", Format: "%t"},
362361
{Name: "Bytes", Type: "[]byte", Default: "nil", Since: "2.2", Comparator: "bytes.Equal"},
363-
{Name: "Float", Type: "float64", Default: "0.0", Format: "%f", SupportsPreferences: true, ToInt: "internalFloatToInt", FromInt: "internalIntToFloat"},
364-
{Name: "Int", Type: "int", Default: "0", Format: "%d", SupportsPreferences: true},
362+
{Name: "Float", Type: "float64", Default: "0.0", Format: "%f", ToInt: "internalFloatToInt", FromInt: "internalIntToFloat"},
363+
{Name: "Int", Type: "int", Default: "0", Format: "%d"},
365364
{Name: "Rune", Type: "rune", Default: "rune(0)"},
366-
{Name: "String", Type: "string", Default: "\"\"", SupportsPreferences: true},
365+
{Name: "String", Type: "string", Default: "\"\""},
367366
{Name: "URI", Type: "fyne.URI", Default: "fyne.URI(nil)", Since: "2.1",
368367
FromString: "uriFromString", ToString: "uriToString", Comparator: "compareURI"},
369368
}

0 commit comments

Comments
 (0)