Skip to content

Commit c4f0e71

Browse files
authored
Merge pull request #12 from AsyncSwift/development
Remove empty lines
2 parents 4e50f02 + 4a80602 commit c4f0e71

13 files changed

+2
-33
lines changed

Sources/AsyncLocationKit/AnyLocationPerformer.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@
2323
import Foundation
2424

2525
protocol AnyLocationPerformer: AnyObject {
26-
2726
var typeIdentifier: ObjectIdentifier { get }
2827
var uniqueIdentifier: UUID { get }
2928
var cancellabel: Cancellabel? { get set }
3029

3130
func eventSupported(_ event: CoreLocationDelegateEvent) -> Bool
32-
3331
func invokedMethod(event: CoreLocationDelegateEvent)
34-
3532
func cancelation()
36-
3733
}

Sources/AsyncLocationKit/AsyncDelegateProxy.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ protocol AsyncDelegateProxyInterface: AnyObject {
5959
}
6060

6161
final class AsyncDelegateProxy: AsyncDelegateProxyInterface {
62-
6362
/// Array of performers, who handle events from normal delegate
6463
var performers: [AnyLocationPerformer] = []
6564

@@ -100,7 +99,6 @@ final class AsyncDelegateProxy: AsyncDelegateProxyInterface {
10099
performers.removeAll(where: { $0.uniqueIdentifier == _performer.uniqueIdentifier })
101100
}
102101
}
103-
104102
}
105103

106104
extension AsyncDelegateProxy: Cancellabel {

Sources/AsyncLocationKit/AsyncLocationManager.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public typealias HeadingMonitorStream = AsyncStream<HeadingMonitorEvent>
3232
public typealias BeaconsRangingStream = AsyncStream<BeaconRangeEvent>
3333

3434
public final class AsyncLocationManager {
35-
3635
private var locationManager: CLLocationManager
3736
private var proxyDelegate: AsyncDelegateProxyInterface
3837
private var locationDelegate: CLLocationManagerDelegate
@@ -157,7 +156,6 @@ public final class AsyncLocationManager {
157156
}
158157

159158
#if os(iOS)
160-
161159
@available(iOS 13, *)
162160
public func startUpdatingHeading() async -> HeadingMonitorStream {
163161
let performer = HeadingMonitorPerformer()
@@ -175,7 +173,6 @@ public final class AsyncLocationManager {
175173
proxyDelegate.cancel(for: HeadingMonitorPerformer.self)
176174
locationManager.stopUpdatingHeading()
177175
}
178-
179176
#endif
180177

181178
public func startRangingBeacons(satisfying: CLBeaconIdentityConstraint) async -> BeaconsRangingStream {

Sources/AsyncLocationKit/CoreLocationEvents.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ enum CoreLocationDelegateEvent {
7979
return .locationUpdatesResume
8080
}
8181
}
82-
8382
}
8483

8584
/// Event for mark what support current delegate

Sources/AsyncLocationKit/LocationDelegate.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import CoreLocation
2424
import Foundation
2525

2626
internal class LocationDelegate: NSObject, CLLocationManagerDelegate {
27-
2827
weak var proxy: AsyncDelegateProxyInterface?
2928

3029
init(delegateProxy: AsyncDelegateProxyInterface) {
@@ -64,7 +63,6 @@ internal class LocationDelegate: NSObject, CLLocationManagerDelegate {
6463
proxy?.eventForMethodInvoked(.didFailRanginFor(beaconConstraint: beaconConstraint, error: error))
6564
}
6665

67-
6866
// MARK: - Region
6967
func locationManager(_ manager: CLLocationManager, didEnterRegion region: CLRegion) {
7068
proxy?.eventForMethodInvoked(.didEnterRegion(region: region))
@@ -78,7 +76,6 @@ internal class LocationDelegate: NSObject, CLLocationManagerDelegate {
7876
proxy?.eventForMethodInvoked(.didStartMonitoringFor(region: region))
7977
}
8078

81-
8279
// MARK: - Fails methods
8380
func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
8481
proxy?.eventForMethodInvoked(.didFailWithError(error: error))
@@ -93,7 +90,6 @@ internal class LocationDelegate: NSObject, CLLocationManagerDelegate {
9390
proxy?.eventForMethodInvoked(.didVisit(visit: visit))
9491
}
9592

96-
9793
// MARK: - Pause and resume
9894
func locationManagerDidPauseLocationUpdates(_ manager: CLLocationManager) {
9995
proxy?.eventForMethodInvoked(.locationUpdatesPaused)
@@ -102,5 +98,4 @@ internal class LocationDelegate: NSObject, CLLocationManagerDelegate {
10298
func locationManagerDidResumeLocationUpdates(_ manager: CLLocationManager) {
10399
proxy?.eventForMethodInvoked(.locationUpdatesResume)
104100
}
105-
106101
}

Sources/AsyncLocationKit/Performers/AuthorizationPerformer.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import Foundation
2424
import CoreLocation.CLLocation
2525

2626
class RequestAuthorizationPerformer: AnyLocationPerformer {
27-
2827
var typeIdentifier: ObjectIdentifier {
2928
return ObjectIdentifier(Self.self)
3029
}
@@ -60,5 +59,4 @@ class RequestAuthorizationPerformer: AnyLocationPerformer {
6059
}
6160

6261
func cancelation() { }
63-
6462
}

Sources/AsyncLocationKit/Performers/BeaconsRangePerformer.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,5 @@ class BeaconsRangePerformer: AnyLocationPerformer {
6666
}
6767
}
6868

69-
func cancelation() { }
70-
69+
func cancelation() { }
7170
}

Sources/AsyncLocationKit/Performers/HeadingMonitorPerformer.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ public enum HeadingMonitorEvent {
2929
}
3030

3131
class HeadingMonitorPerformer: AnyLocationPerformer {
32-
3332
var typeIdentifier: ObjectIdentifier {
3433
return ObjectIdentifier(Self.self)
3534
}
@@ -60,5 +59,4 @@ class HeadingMonitorPerformer: AnyLocationPerformer {
6059
}
6160

6261
func cancelation() { }
63-
6462
}

Sources/AsyncLocationKit/Performers/MonitoringUpdateLocationPerformer.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public enum LocationUpdateEvent {
3131
}
3232

3333
class MonitoringUpdateLocationPerformer: AnyLocationPerformer {
34-
3534
var typeIdentifier: ObjectIdentifier {
3635
return ObjectIdentifier(Self.self)
3736
}
@@ -71,5 +70,4 @@ class MonitoringUpdateLocationPerformer: AnyLocationPerformer {
7170
stream.finish()
7271
self.stream = nil
7372
}
74-
7573
}

Sources/AsyncLocationKit/Performers/RegionMonitoringPerformer.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public enum RegionMonitoringEvent {
3131
}
3232

3333
class RegionMonitoringPerformer: AnyLocationPerformer {
34-
3534
var typeIdentifier: ObjectIdentifier {
3635
return ObjectIdentifier(Self.self)
3736
}
@@ -71,5 +70,4 @@ class RegionMonitoringPerformer: AnyLocationPerformer {
7170
}
7271

7372
func cancelation() { }
74-
7573
}

0 commit comments

Comments
 (0)