aboutsummaryrefslogtreecommitdiff
path: root/plugins/uber-jar/src/uberjar/TryWithResources.scala
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uber-jar/src/uberjar/TryWithResources.scala')
-rw-r--r--plugins/uber-jar/src/uberjar/TryWithResources.scala13
1 files changed, 0 insertions, 13 deletions
diff --git a/plugins/uber-jar/src/uberjar/TryWithResources.scala b/plugins/uber-jar/src/uberjar/TryWithResources.scala
deleted file mode 100644
index c2f11f9..0000000
--- a/plugins/uber-jar/src/uberjar/TryWithResources.scala
+++ /dev/null
@@ -1,13 +0,0 @@
-package cbt.uberjar
-
-import java.io.Closeable
-
-import scala.util.Try
-
-private[cbt] object TryWithResources {
- def withCloseable[T <: Closeable, R](t: T)(f: T => R): Try[R] = {
- val result = Try(f(t))
- t.close()
- result
- }
-}