Skip to content

Commit

Permalink
Remove unused initializer for parent model
Browse files Browse the repository at this point in the history
  • Loading branch information
Koray Koska committed May 10, 2017
1 parent 3e24d69 commit da550db
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Sources/VaporJsonApi/Resources/JsonApiParentModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,4 @@ public struct JsonApiParentModel {
self.setter = setter
self.type = parentType
}

public init(model: JsonApiResourceModel, foreignId: Node?, foreignKey: String? = nil, parentType: JsonApiResourceModel.Type, setter: JsonApiParentSetter? = nil) throws {
self.getter = {
return try model.parent(foreignId, foreignKey, parentType).get()
}
self.setter = setter
self.type = parentType
}
}

0 comments on commit da550db

Please sign in to comment.