Skip to content

Commit

Permalink
chore: Remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
eikek committed Feb 13, 2024
1 parent 0fa2b88 commit 721ae07
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions project/AvroSchemaDownload.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit 721ae07

Please sign in to comment.