Skip to content

Commit

Permalink
Remove URLEncoded DateDecodingStrategy.formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Dec 24, 2024
1 parent 951e947 commit 214bfe9
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ public struct URLEncodedFormEncoder: Sendable {
/// Encode the `Date` as an ISO-8601-formatted string (in RFC 3339 format).
case iso8601

/// Encode the `Date` as a string parsed by the given formatter.
case formatted(DateFormatter)

/// Encode the `Date` as a custom value encoded by the given closure.
case custom(@Sendable (Date, Encoder) throws -> Void)
}
Expand Down Expand Up @@ -335,8 +332,6 @@ extension _URLEncodedFormEncoder {
#else
try self.encode(URLEncodedForm.iso8601Formatter.string(from: date))
#endif
case .formatted(let formatter):
try self.encode(formatter.string(from: date))
case .custom(let closure):
try closure(date, self)
}
Expand Down

0 comments on commit 214bfe9

Please sign in to comment.