Skip to content

Commit 6e3c1b4

Browse files
committed
Remove unused region arg
1 parent f68d396 commit 6e3c1b4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Sources/Implementation/Events/BatchEventBuilder.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ class BatchEventBuilder {
4747
userId: userId,
4848
attributes: attributes,
4949
decisions: [decision],
50-
dispatchEvents: [dispatchEvent],
51-
region: config.region)
50+
dispatchEvents: [dispatchEvent])
5251
}
5352

5453
// MARK: - Converison Event
@@ -78,8 +77,7 @@ class BatchEventBuilder {
7877
userId: userId,
7978
attributes: attributes,
8079
decisions: nil,
81-
dispatchEvents: [dispatchEvent],
82-
region: config.region)
80+
dispatchEvents: [dispatchEvent])
8381
}
8482

8583
// MARK: - Create Event

Sources/Optimizely+Decide/OptimizelyUserContext+ObjC.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import Foundation
3333
}
3434

3535
public init(optimizely: OptimizelyClient, userId: String, attributes: [String: Any]? = nil, region: String = "US") {
36-
userContext = OptimizelyUserContext(optimizely: optimizely, userId: userId, attributes: attributes ,region: region)
36+
userContext = OptimizelyUserContext(optimizely: optimizely, userId: userId, attributes: attributes)
3737
}
3838

3939
public init(user: OptimizelyUserContext, region: String = "US") {
@@ -100,7 +100,7 @@ extension OptimizelyClient {
100100
@available(swift, obsoleted: 1.0)
101101
@objc(createUserContextWithUserId:attributes:region:)
102102
public func objcCreateUserContext(userId: String, attributes: [String: Any]? = nil, region: String) -> ObjcOptimizelyUserContext {
103-
let user = OptimizelyUserContext(optimizely: self, userId: userId, attributes: attributes, region: region)
103+
let user = OptimizelyUserContext(optimizely: self, userId: userId, attributes: attributes)
104104
return ObjcOptimizelyUserContext(user: user, region: region)
105105
}
106106

0 commit comments

Comments
 (0)