Skip to content

Commit 380a493

Browse files
committed
Remove unused toAny method
1 parent ce94b77 commit 380a493

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed

Sources/XcodeGraph/Models/Settings.swift

-12
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,6 @@ extension [BuildConfiguration: Configuration?] {
145145
}
146146
}
147147

148-
extension [String: SettingValue] {
149-
public func toAny() -> [String: Any] {
150-
mapValues { value in
151-
switch value {
152-
case let .array(array):
153-
return array
154-
case let .string(string):
155-
return string
156-
}
157-
}
158-
}
159-
}
160148

161149
#if DEBUG
162150
extension Configuration {

Tests/XcodeGraphTests/Models/SettingsTests.swift

-22
Original file line numberDiff line numberDiff line change
@@ -153,25 +153,3 @@ final class SettingsTests: XCTestCase {
153153
Configuration(settings: [:], xcconfig: nil)
154154
}
155155
}
156-
157-
final class DictionaryStringSettingValueExtensionTests: XCTestCase {
158-
func testToAny() {
159-
// Given
160-
let buildConfig: [String: SettingValue] = [
161-
"A": ["A_VALUE_1", "A_VALUE_2"],
162-
"B": "B_VALUE",
163-
"C": ["C_VALUE"],
164-
]
165-
let expected: [String: Any] = [
166-
"A": ["A_VALUE_1", "A_VALUE_2"],
167-
"B": "B_VALUE",
168-
"C": ["C_VALUE"],
169-
]
170-
171-
// When
172-
let got = buildConfig.toAny()
173-
174-
// Then
175-
XCTAssertEqualDictionaries(got, expected)
176-
}
177-
}

0 commit comments

Comments
 (0)