forked from mirror/gorm
Merge pull request #676 from nkovacs/unused-interface
remove unused tabler interface
This commit is contained in:
commit
ede940e82d
|
@ -123,11 +123,6 @@ func (scope *Scope) GetModelStruct() *ModelStruct {
|
||||||
return &modelStruct
|
return &modelStruct
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set tablename
|
|
||||||
type tabler interface {
|
|
||||||
TableName() string
|
|
||||||
}
|
|
||||||
|
|
||||||
if tabler, ok := reflect.New(scopeType).Interface().(interface {
|
if tabler, ok := reflect.New(scopeType).Interface().(interface {
|
||||||
TableName() string
|
TableName() string
|
||||||
}); ok {
|
}); ok {
|
||||||
|
|
Loading…
Reference in New Issue