From fd52a14e02eb59b56fe3608998cb6d5c7028b93b Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Tue, 29 Nov 2022 12:59:17 +0100 Subject: [PATCH] refactor: remove unused cloneKafka stuff. This isn't used at all and in the future if we really want to use this we can revisit it and pull it back out. For now, all the cleanup we can get makes thing easier to understand --- project/BuildPlugin.scala | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/project/BuildPlugin.scala b/project/BuildPlugin.scala index 5c04594a5c..098c4de2f9 100644 --- a/project/BuildPlugin.scala +++ b/project/BuildPlugin.scala @@ -339,19 +339,6 @@ object BuildImplementation { "-Xmx3g" :: "-Xms1g" :: "-XX:ReservedCodeCacheSize=512m" :: "-XX:MaxInlineLevel=20" :: Nil object BuildDefaults { - private final val kafka = - uri("https://github.com/apache/kafka.git#57320981bb98086a0b9f836a29df248b1c0378c3") - - // Currently unused, we leave it here because we might need it in the future - private def cloneKafka(state: State): State = { - val staging = getStagingDirectory(state) - sbt.Resolvers.git(new BuildLoader.ResolveInfo(kafka, staging, null, state)) match { - case Some(f) => state.put(BuildKeys.gradleIntegrationDirs, List(f())) - case None => - state.log.error("Kafka git reference is invalid and cannot be cloned"); state - } - } - def exportProjectsInTestResources( baseDir: File, log: Logger,