diff --git a/model_struct.go b/model_struct.go
index 6a9a37ec..bd766b85 100644
--- a/model_struct.go
+++ b/model_struct.go
@@ -123,11 +123,6 @@ func (scope *Scope) GetModelStruct() *ModelStruct {
 		return &modelStruct
 	}
 
-	// Set tablename
-	type tabler interface {
-		TableName() string
-	}
-
 	if tabler, ok := reflect.New(scopeType).Interface().(interface {
 		TableName() string
 	}); ok {