Skip to content

Commit

Permalink
remove tryExtendedParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-el committed Sep 25, 2023
1 parent 85a7814 commit 394815b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Sources/Core/Tracker/Tracker.swift
Original file line number Diff line number Diff line change
Expand Up @@ -386,18 +386,6 @@ class Tracker: NSObject {
session?.startChecker()
}

/// - Returns: The associated value of the extended parameter if enabled and set in the tracker, an empty string if the parameter is not enabled, or nil if parameter is enabled without an aviliable value
func tryExtendedParameter(_ extendedParameterSet: Bool, _ value: String?) -> String? {
switch (extendedParameterSet, value) {
case (true, .some(let val)):
return val
case (true, .none):
return nil
case (false, _):
return ""
}
}

private func decorateLinkErrorTemplate(_ extendedParameterName: String) -> String {
"\(extendedParameterName) has been requested in CrossDeviceParameterConfiguration, but it is not set."
}
Expand Down

0 comments on commit 394815b

Please sign in to comment.