Skip to content

Commit 4687551

Browse files
authored
Removed unused code (#11)
1 parent 2801046 commit 4687551

File tree

1 file changed

+0
-6
lines changed
  • src/main/scala/ton/sdk/client/modules

1 file changed

+0
-6
lines changed

src/main/scala/ton/sdk/client/modules/Abi.scala

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ object Abi {
2727
val handle: AbiJson = AbiJson("Handle", 0.asJson)
2828
def fromJson(abiJson: Json): AbiJson = AbiJson("Serialized", abiJson)
2929
def fromString(abiJson: String): Either[ParsingFailure, AbiJson] = parse(abiJson).map(fromJson)
30-
def fromFile(path: String): Either[ParsingFailure, AbiJson] = fromString {
31-
val source = Source.fromFile(path)
32-
val str = source.mkString
33-
source.close()
34-
str
35-
}
3630
def fromResource(name: String, classLoader: ClassLoader = Thread.currentThread().getContextClassLoader): Either[ParsingFailure, AbiJson] =
3731
fromString(Source.fromResource(name, classLoader).mkString)
3832
}

0 commit comments

Comments
 (0)