diff --git a/Sources/VaporJsonApi/Resources/JsonApiParentModel.swift b/Sources/VaporJsonApi/Resources/JsonApiParentModel.swift index 2da73a5..d2f1108 100644 --- a/Sources/VaporJsonApi/Resources/JsonApiParentModel.swift +++ b/Sources/VaporJsonApi/Resources/JsonApiParentModel.swift @@ -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 - } }