From 83366e673d87ef9bc0bf6d4bd2a1023bb8b1185e Mon Sep 17 00:00:00 2001 From: iximeow Date: Wed, 11 Mar 2015 16:46:19 -0700 Subject: remove apply method --- src/main.scala | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main.scala b/src/main.scala index 9dc5d42..f186597 100644 --- a/src/main.scala +++ b/src/main.scala @@ -1,10 +1,9 @@ package ixee.re.disasm object main extends App { - def apply: Unit = { - def disassemble(bytes: Seq[String]): Seq[Option[Instruction]] = bytes.map(Instruction(_)) + def disassemble(bytes: Seq[String]): Seq[Option[Instruction]] = bytes.map(Instruction(_)) - val bytes = """ + val bytes = """ 3140 0044 1542 5c01 75f3 35d0 085a 3f40 0000 0f93 0724 8245 @@ -22,6 +21,5 @@ f000 fd3f 3040 0a46 7a45 5f44 fcff 8f11 """.replace("\n", " ").split(" ").filter(_ != "") - println(disassemble(bytes).flatten.mkString("\n")) - } + println(disassemble(bytes).flatten.mkString("\n")) } -- cgit v1.1