Skip to content

Commit

Permalink
Remove deprecated, non nested error types
Browse files Browse the repository at this point in the history
  • Loading branch information
djbe authored May 16, 2017
2 parents 7789750 + e8bbfa7 commit 2d13eed
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
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

0 comments on commit 2d13eed

Please # to comment.