From 135684790b25ee4c006bea3efb0950385375b67b Mon Sep 17 00:00:00 2001 From: weisj <31143295+weisJ@users.noreply.github.com> Date: Sat, 31 Jul 2021 20:00:07 +0200 Subject: [PATCH] Remove unused method --- buildSrc/src/main/kotlin/{XCode.kt => BuildUtil.kt} | 8 -------- 1 file changed, 8 deletions(-) rename buildSrc/src/main/kotlin/{XCode.kt => BuildUtil.kt} (53%) diff --git a/buildSrc/src/main/kotlin/XCode.kt b/buildSrc/src/main/kotlin/BuildUtil.kt similarity index 53% rename from buildSrc/src/main/kotlin/XCode.kt rename to buildSrc/src/main/kotlin/BuildUtil.kt index 459c0ba81..c69690606 100644 --- a/buildSrc/src/main/kotlin/XCode.kt +++ b/buildSrc/src/main/kotlin/BuildUtil.kt @@ -1,4 +1,3 @@ -import org.gradle.util.VersionNumber import java.util.concurrent.TimeUnit fun String.runCommand(): String? { @@ -11,10 +10,3 @@ fun String.runCommand(): String? { output.trim() }.getOrNull() } - -fun getXCodeVersion(): VersionNumber? { - val version = "/usr/bin/xcodebuild -version".runCommand() ?: return null - val extracted = Regex("""Xcode\s+([0-9\\.]*).*""") - .find(version)?.groupValues?.getOrNull(1) ?: return null - return VersionNumber.parse(extracted) -}