Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
aslesarenko committed Dec 14, 2019
1 parent b41a8ab commit d4e7c51
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 1 addition & 0 deletions common/src/main/scala/scalan/util/CollectionUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ object CollectionUtil {
implicit class HashMapOps[K,V](val source: java.util.HashMap[K,V]) extends AnyVal {
def toImmutableMap: Map[K,V] = {
var res = Map[K,V]()
// don't beautify: at least this code should compile under java 1.7
val entries = source.entrySet().iterator()
while (entries.hasNext) {
val e = entries.next()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,6 @@ trait SigmaTestingCommons extends PropSpec
val positionLimitBefore = r.positionLimit
serializer.parse(r) shouldBe v
r.positionLimit shouldBe positionLimitBefore

// using ergo's(scorex) reader/writer
// val w = new VLQByteStringWriter()
// serializer.serializeWithGenericWriter(v, w)
// val byteStr = w.result()
// byteStr.nonEmpty shouldBe true
// serializer.parseWithGenericReader(new VLQByteStringReader(byteStr)) shouldEqual v
}

protected def roundTripTestWithPos[T](v: T)(implicit serializer: SigmaSerializer[T, T]): Assertion = {
Expand Down

0 comments on commit d4e7c51

Please sign in to comment.