Skip to content

Commit

Permalink
remove public encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Sep 1, 2024
1 parent e37d2cf commit e7e1bb3
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions Sources/ParseSwift/Coding/ParseEncoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,24 +171,6 @@ public struct ParseEncoder: Sendable {
return encodedData
}

/**
Encodes an instance of the indicated `ParseObject`.
- parameter value: The `ParseObject` instance to encode.
- parameter acl: The `ParseACL` to add to the value. Defaults to `nil`.
*/
public func encode<T: ParseObject>(
_ value: T,
acl: ParseACL? = nil
) throws -> Data {
try encode(
value,
acl: acl,
collectChildren: false,
objectsSavedBeforeThisOne: nil,
filesSavedBeforeThisOne: nil
).encoded
}

// swiftlint:disable large_tuple
func encode<T: ParseObject>(
_ value: T,
Expand Down

0 comments on commit e7e1bb3

Please sign in to comment.