Skip to content

Commit c6b143e

Browse files
Merge pull request #173 from pusher/feature/remove-redundant-public-api
Remove redundant `public` API
2 parents 276d44c + 711e6a0 commit c6b143e

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

Sources/Helpers/MD5.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,12 @@
1919

2020
import Foundation
2121

22-
// MARK: - Public
22+
// MARK: - Functions
2323

24-
public func MD5(_ input: String) -> String {
25-
return hex_md5(input)
24+
func MD5(_ input: String) -> String {
25+
return hex_md5(input)
2626
}
2727

28-
// MARK: - Functions
29-
3028
func hex_md5(_ input: String) -> String {
3129
return rstr2hex(rstr_md5(str2rstr_utf8(input)))
3230
}

Sources/Models/Metadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public struct Metadata: Equatable, Codable {
3+
struct Metadata: Equatable, Codable {
44
let sdkVersion: String?
55
let iosVersion: String?
66
let macosVersion: String?

Sources/Protocols/RetryStrategy.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ protocol RetryStrategy {
44
func retry<T>(function: () -> Result<T, PushNotificationsAPIError>) -> Result<T, PushNotificationsAPIError>
55
}
66

7-
public struct JustDont: RetryStrategy {
7+
struct JustDont: RetryStrategy {
88
func retry<T>(function: () -> Result<T, PushNotificationsAPIError>) -> Result<T, PushNotificationsAPIError> {
99
let result = function()
1010

@@ -19,7 +19,7 @@ public struct JustDont: RetryStrategy {
1919
}
2020
}
2121

22-
public class WithInfiniteExpBackoff: RetryStrategy {
22+
class WithInfiniteExpBackoff: RetryStrategy {
2323
private var retryCount = 0
2424

2525
func retry<T>(function: () -> Result<T, PushNotificationsAPIError>) -> Result<T, PushNotificationsAPIError> {

Sources/Services/DeviceStateStore.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22

3-
public class DeviceStateStore {
3+
class DeviceStateStore {
44

55
let service: UserDefaults
66

@@ -96,7 +96,7 @@ public class DeviceStateStore {
9696
}
9797
}
9898

99-
public class InstanceDeviceStateStore {
99+
class InstanceDeviceStateStore {
100100
static let queue = DispatchQueue(label: "com.pusher.beams.deviceStateStoreQueue")
101101
let service: UserDefaults
102102
let instanceId: String?

0 commit comments

Comments
 (0)