Skip to content

Commit

Permalink
Removed unneeded iterate function
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenTiigi committed Dec 31, 2020
1 parent 6af64a8 commit 40fb837
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions Sources/AwesomePlace/FlyoverAwesomePlace.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import CoreLocation

/// Awesome 360° locations and landmarks like
/// NewYorkStatueOfLiberty, GooglePlex, SydneyOperaHouse and many more.
public enum FlyoverAwesomePlace: String, Equatable, Hashable, CaseIterable {
public enum FlyoverAwesomePlace: String, Codable, Equatable, Hashable, CaseIterable {
// MARK: USA
/// New York Statue of Liberty
case newYorkStatueOfLiberty
Expand Down Expand Up @@ -129,16 +129,3 @@ extension FlyoverAwesomePlace: Flyover {
}

}

// MARK: - FlyoverAwesomePlace iterate

public extension FlyoverAwesomePlace {

/// Iterate through all FlyoverAwesomePlace cases
///
/// - Returns: Iterator of the enumeration
static func iterate() -> IndexingIterator<[FlyoverAwesomePlace]> {
return FlyoverAwesomePlace.allCases.makeIterator()
}

}

0 comments on commit 40fb837

Please sign in to comment.