Skip to content

Commit 1356847

Browse files
committed
Remove unused method
1 parent 4361ab3 commit 1356847

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed
Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import org.gradle.util.VersionNumber
21
import java.util.concurrent.TimeUnit
32

43
fun String.runCommand(): String? {
@@ -11,10 +10,3 @@ fun String.runCommand(): String? {
1110
output.trim()
1211
}.getOrNull()
1312
}
14-
15-
fun getXCodeVersion(): VersionNumber? {
16-
val version = "/usr/bin/xcodebuild -version".runCommand() ?: return null
17-
val extracted = Regex("""Xcode\s+([0-9\\.]*).*""")
18-
.find(version)?.groupValues?.getOrNull(1) ?: return null
19-
return VersionNumber.parse(extracted)
20-
}

0 commit comments

Comments
 (0)