summaryrefslogtreecommitdiff
path: root/scalatexApi/src
diff options
context:
space:
mode:
Diffstat (limited to 'scalatexApi/src')
-rw-r--r--scalatexApi/src/main/scala/scalatex/Util.scala10
-rw-r--r--scalatexApi/src/main/scala/scalatex/package.scala2
-rw-r--r--scalatexApi/src/main/scala/scalatex/stages/Compiler.scala1
-rw-r--r--scalatexApi/src/main/scala/scalatex/stages/Parser.scala5
-rw-r--r--scalatexApi/src/main/scala/scalatex/stages/Trim.scala1
5 files changed, 5 insertions, 14 deletions
diff --git a/scalatexApi/src/main/scala/scalatex/Util.scala b/scalatexApi/src/main/scala/scalatex/Util.scala
deleted file mode 100644
index 3bf9553..0000000
--- a/scalatexApi/src/main/scala/scalatex/Util.scala
+++ /dev/null
@@ -1,10 +0,0 @@
-package scalatex
-import acyclic.file
-
-object Util {
-
- implicit class Pipeable[T](t: T){
- def |>[V](f: T => V): V = f(t)
- }
-}
-
diff --git a/scalatexApi/src/main/scala/scalatex/package.scala b/scalatexApi/src/main/scala/scalatex/package.scala
index 78df45f..ca06411 100644
--- a/scalatexApi/src/main/scala/scalatex/package.scala
+++ b/scalatexApi/src/main/scala/scalatex/package.scala
@@ -7,7 +7,7 @@ import scala.language.experimental.macros
import acyclic.file
package object scalatex {
- import Util._
+
/**
* Wraps the given string as a twist fragment.
*/
diff --git a/scalatexApi/src/main/scala/scalatex/stages/Compiler.scala b/scalatexApi/src/main/scala/scalatex/stages/Compiler.scala
index b34e94d..4f11b04 100644
--- a/scalatexApi/src/main/scala/scalatex/stages/Compiler.scala
+++ b/scalatexApi/src/main/scala/scalatex/stages/Compiler.scala
@@ -1,5 +1,6 @@
package scalatex
package stages
+
import acyclic.file
import scala.reflect.macros.whitebox.Context
diff --git a/scalatexApi/src/main/scala/scalatex/stages/Parser.scala b/scalatexApi/src/main/scala/scalatex/stages/Parser.scala
index 6929f34..1b67446 100644
--- a/scalatexApi/src/main/scala/scalatex/stages/Parser.scala
+++ b/scalatexApi/src/main/scala/scalatex/stages/Parser.scala
@@ -1,9 +1,8 @@
package scalatex
package stages
-
+import acyclic.file
import org.parboiled2._
import torimatomeru.ScalaSyntax
-import Util._
/**
* Parses the input text into a roughly-structured AST. This AST
@@ -168,4 +167,4 @@ object Ast{
case class TypeArgs(str: String, offset: Int = 0) extends Sub
case class Args(str: String, offset: Int = 0) extends Sub
}
-} \ No newline at end of file
+}
diff --git a/scalatexApi/src/main/scala/scalatex/stages/Trim.scala b/scalatexApi/src/main/scala/scalatex/stages/Trim.scala
index 1ac7be1..8993734 100644
--- a/scalatexApi/src/main/scala/scalatex/stages/Trim.scala
+++ b/scalatexApi/src/main/scala/scalatex/stages/Trim.scala
@@ -1,4 +1,5 @@
package scalatex.stages
+import acyclic.file
/**
* Preprocesses the input string to normalize things related to whitespace