Remove an unused parameter (#69)

`relationName` parameter of `visitModelNodeRelationships` method is not used and removed.
This commit is contained in:
Keiji Yoshida 2017-01-29 12:43:47 +09:00 committed by Aren Patel
parent 3ea9ec4904
commit a8d743e645
1 changed files with 2 additions and 3 deletions

View File

@ -376,7 +376,6 @@ func visitModelNode(model interface{}, included *map[string]*Node,
if isSlice {
// to-many relationship
relationship, err := visitModelNodeRelationships(
args[1],
fieldValue,
included,
sideload,
@ -462,8 +461,8 @@ func toShallowNode(node *Node) *Node {
}
}
func visitModelNodeRelationships(relationName string, models reflect.Value,
included *map[string]*Node, sideload bool) (*RelationshipManyNode, error) {
func visitModelNodeRelationships(models reflect.Value, included *map[string]*Node,
sideload bool) (*RelationshipManyNode, error) {
nodes := []*Node{}
for i := 0; i < models.Len(); i++ {