Permalink
Browse files

remove methods that aren't used anymore

  • Loading branch information...
1 parent 73bf9ca commit 1564500a0502be862f01854e3c131a859b7a3721 @n8han n8han committed Dec 24, 2012
Showing with 0 additions and 24 deletions.
  1. +0 −24 library/src/main/scala/g8.scala
@@ -10,30 +10,6 @@ object G8 {
private val renderer = new StringRenderer
- def apply(fromMapping: Seq[(File,String)], toPath: File, parameters: Map[String,String]): Seq[File] =
- fromMapping filter { !_._1.isDirectory } flatMap { case (in, relative) =>
- apply(in, expandPath(relative, toPath, parameters), parameters)
- }
-
- def apply(in: File, out: File, parameters: Map[String,String]) = {
-
- try {
- if (verbatim(in, parameters)) FileUtils.copyFile(in, out)
- else {
- write(out, FileUtils.readFileToString(in, UTF_8), parameters)
- }
- }
- catch {
- case e: Exception =>
- println("Falling back to file copy for %s: %s" format(in.toString, e.getMessage))
- FileUtils.copyFile(in, out)
- }
- allCatch opt {
- if (in.canExecute) out.setExecutable(true)
- }
- Seq(out)
- }
-
def write(out: File, template: String, parameters: Map[String, String], append: Boolean = false) {
val applied = new StringTemplate(template)
.setAttributes(parameters)

0 comments on commit 1564500

Please sign in to comment.