From d4d00fb44703d794c961607c7b3f418e11700e10 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Fri, 18 Dec 2015 15:45:45 -0800 Subject: [PATCH] Not used. --- .../com/beust/kobalt/plugin/android/AndroidPlugin.kt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/kotlin/com/beust/kobalt/plugin/android/AndroidPlugin.kt b/src/main/kotlin/com/beust/kobalt/plugin/android/AndroidPlugin.kt index 48a76ac6..e825a27c 100644 --- a/src/main/kotlin/com/beust/kobalt/plugin/android/AndroidPlugin.kt +++ b/src/main/kotlin/com/beust/kobalt/plugin/android/AndroidPlugin.kt @@ -196,16 +196,6 @@ public class AndroidPlugin @Inject constructor(val javaCompiler: JavaCompiler, return result } - private fun compile(project: Project, rDirectory: String): File { - val sourceFiles = arrayListOf(Paths.get(rDirectory, "R.java").toFile().path) - val buildDir = File(AndroidFiles.classesDir(project, context.variant)) - // Using a directory of "." since the project.directory is already present in buildDir - val cai = CompilerActionInfo(".", listOf(), sourceFiles, buildDir, listOf( - "-source", "1.6", "-target", "1.6")) - javaCompiler.compile(project, context, cai) - return buildDir - } - /** * Implements ICompilerFlagContributor * Make sure we compile and generate 1.6 sources unless the build file defined those (which can