entc/gen: remove unnecessary function from codegen (#3287)

This commit is contained in:
Ariel Mashraki
2023-01-30 18:32:25 +02:00
committed by GitHub
parent d11122592a
commit a0fad09539
157 changed files with 51 additions and 857 deletions

View File

@@ -150,9 +150,3 @@ func (c *Car) String() string {
// Cars is a parsable slice of Car.
type Cars []*Car
func (c Cars) config(cfg config) {
for _i := range c {
c[_i].config = cfg
}
}

View File

@@ -121,9 +121,3 @@ func (gr *Group) String() string {
// Groups is a parsable slice of Group.
type Groups []*Group
func (gr Groups) config(cfg config) {
for _i := range gr {
gr[_i].config = cfg
}
}

View File

@@ -148,9 +148,3 @@ func (u *User) String() string {
// Users is a parsable slice of User.
type Users []*User
func (u Users) config(cfg config) {
for _i := range u {
u[_i].config = cfg
}
}