From 721ae07de65249ea37c59b40b80fa21586818e8b Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Tue, 13 Feb 2024 11:55:50 +0100 Subject: [PATCH] chore: Remove obsolete code --- project/AvroSchemaDownload.scala | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/project/AvroSchemaDownload.scala b/project/AvroSchemaDownload.scala index c947b8e7..2e5b1a31 100644 --- a/project/AvroSchemaDownload.scala +++ b/project/AvroSchemaDownload.scala @@ -104,20 +104,4 @@ object AvroSchemaDownload extends AutoPlugin { case _ => () } - def evilHackAddPackage(logger: Logger, dir: File, pkg: String): Seq[File] = { - val pkgLine = s"package $pkg" - - def prependPackage(file: File) = { - val content = IO.read(file) - if (!content.startsWith("package ")) { - logger.info(s"Add package to: $file") - IO.write(file, s"$pkgLine;\n\n") // scala & java ... - IO.append(file, content) - } - file - } - - (dir ** "*.scala").get().map(prependPackage) ++ - (dir ** "*.java").get().map(prependPackage) - } }