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 StringFilters and NumFilters typealiases #40

Merged
merged 1 commit 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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ _None_
* The `FilterError` enum has been replaced by the `Filters.Error` nested type.
[Olivier Halligon](https://github.com/AliGator)
[#37](https://github.com/SwiftGen/SwiftGenKit/pulls/37)
* The filters in `StringFilters` and `NumFilters` are now located under `Filters.Strings` and `Filters.Numbers`.
[Olivier Halligon](https://github.com/AliGator)
[#40](https://github.com/SwiftGen/SwiftGenKit/pulls/40)
* Removed the `join` filter, as it's now integrated in `Stencil` proper.
[David Jennes](https://github.com/djbe)
[#10](https://github.com/SwiftGen/StencilSwiftKit/pull/10)
Expand Down
4 changes: 0 additions & 4 deletions Sources/Filters+Numbers.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.Numbers", message: "Use the Filters.Numbers nested type instead")
typealias NumFilters = Filters.Numbers

extension Filters {
enum Numbers {
static func hexToInt(_ value: Any?) throws -> Any? {
Expand Down
4 changes: 0 additions & 4 deletions Sources/Filters+Strings.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.Strings", message: "Use the Filters.Strings nested type instead")
typealias StringFilters = Filters.Strings

extension Filters {
enum Strings {
fileprivate static let reservedKeywords = [
Expand Down