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

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

View File

@@ -136,9 +136,3 @@ func (s *Street) String() string {
// Streets is a parsable slice of Street.
type Streets []*Street
func (s Streets) config(cfg config) {
for _i := range s {
s[_i].config = cfg
}
}

View File

@@ -106,9 +106,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
}
}

View File

@@ -118,9 +118,3 @@ func (u *User) GoString() 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
}
}

View File

@@ -165,9 +165,3 @@ func (f *File) String() string {
// Files is a parsable slice of File.
type Files []*File
func (f Files) config(cfg config) {
for _i := range f {
f[_i].config = cfg
}
}

View File

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

View File

@@ -161,9 +161,3 @@ func (pe *Pet) MarshalJSON() ([]byte, error) {
// Pets is a parsable slice of Pet.
type Pets []*Pet
func (pe Pets) config(cfg config) {
for _i := range pe {
pe[_i].config = cfg
}
}

View File

@@ -145,9 +145,3 @@ func (u *User) MarshalJSON() ([]byte, error) {
// Users is a parsable slice of User.
type Users []*User
func (u Users) config(cfg config) {
for _i := range u {
u[_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

@@ -132,9 +132,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
}
}

View File

@@ -132,9 +132,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
}
}

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
}
}

View File

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

View File

@@ -158,9 +158,3 @@ func (pe *Pet) String() string {
// Pets is a parsable slice of Pet.
type Pets []*Pet
func (pe Pets) config(cfg config) {
for _i := range pe {
pe[_i].config = cfg
}
}

View File

@@ -150,9 +150,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
}
}

View File

@@ -136,9 +136,3 @@ func (pe *Pet) String() string {
// Pets is a parsable slice of Pet.
type Pets []*Pet
func (pe Pets) config(cfg config) {
for _i := range pe {
pe[_i].config = cfg
}
}

View File

@@ -132,9 +132,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
}
}

View File

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

View File

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

View File

@@ -137,9 +137,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
}
}

View File

@@ -146,9 +146,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
}
}

View File

@@ -154,9 +154,3 @@ func (n *Node) String() string {
// Nodes is a parsable slice of Node.
type Nodes []*Node
func (n Nodes) config(cfg config) {
for _i := range n {
n[_i].config = cfg
}
}

View File

@@ -95,9 +95,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
}
}

View File

@@ -153,9 +153,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

@@ -95,9 +95,3 @@ func (t *Tenant) String() string {
// Tenants is a parsable slice of Tenant.
type Tenants []*Tenant
func (t Tenants) config(cfg config) {
for _i := range t {
t[_i].config = cfg
}
}

View File

@@ -169,9 +169,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
}
}

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
}
}

View File

@@ -152,9 +152,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

@@ -152,9 +152,3 @@ func (pe *Pet) String() string {
// Pets is a parsable slice of Pet.
type Pets []*Pet
func (pe Pets) config(cfg config) {
for _i := range pe {
pe[_i].config = cfg
}
}

View File

@@ -180,9 +180,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
}
}

View File

@@ -106,9 +106,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
}
}