Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecated, non nested error types #37

Merged
merged 2 commits into from
May 16, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ _None_

### Breaking Changes

_None_
* The `ParametersError` enum has been replaced by the `Parameters.Error` nested type.
[Olivier Halligon](https://github.com/AliGator)
[#?](https://github.com/SwiftGen/SwiftGenKit/pulls/#)
* The `FilterError` enum has been replaced by the `Filters.Error` nested type.
[Olivier Halligon](https://github.com/AliGator)
[#?](https://github.com/SwiftGen/SwiftGenKit/pulls/#)

### New Features

Expand Down
4 changes: 0 additions & 4 deletions Sources/Filters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
import Foundation
import Stencil

// For retro-compatibility. Remove in next major.
@available(*, deprecated, renamed: "Filters.Error", message: "Use the Filters.Error nested type instead")
typealias FilterError = Filters.Error

enum Filters {
enum Error: Swift.Error {
case invalidInputType
Expand Down
4 changes: 0 additions & 4 deletions Sources/Parameters.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

import Foundation

// For retro-compatibility. Remove in next major.
@available(*, deprecated, renamed: "Parameters.Error", message: "Use the Parameters.Error nested type instead")
public typealias ParametersError = Parameters.Error

/// Namespace to handle extra context parameters passed as a list of `foo=bar` strings.
/// Typically used when parsing command-line arguments one by one
/// (like `foo=bar pt.x=1 pt.y=2 values=1 values=2 values=3 flag`)
Expand Down