Skip to content

Commit

Permalink
fix-tx-serializer: removed unrelated code and TODOs
Browse files Browse the repository at this point in the history
  • Loading branch information
aslesarenko committed Nov 23, 2023
1 parent 7ea5a13 commit 5ad896f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 27 deletions.
12 changes: 0 additions & 12 deletions core/shared/src/main/scala/sigma/util/CollectionUtil.scala
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,6 @@ object CollectionUtil {
result
}

/** Concatenate all the arrays in the sequence. */
def concatArrays[T: ClassTag](seq: Traversable[Array[T]]): Array[T] = {
val length: Int = seq.map(_.length).sum
val result: Array[T] = new Array[T](length)
var pos: Int = 0
seq.foreach { array =>
System.arraycopy(array, 0, result, pos, array.length)
pos += array.length
}
result
}

/** Computes the deep hash code for the given array.
*
* This method calculates the hash code based on the array's elements and type, taking nested arrays
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ object ContextExtension {
val values = (0 until extSize)
.map(_ => (r.getByte(), r.getValue().asInstanceOf[EvaluatedValue[_ <: SType]]))

// TODO v6.0: enforce ordering e.g. using the code below (see https://github.com/ScorexFoundation/sigmastate-interpreter/issues/681)
// if (VersionContext.current.activatedVersion > JitActivationVersion) {
// ContextExtension(mutable.LinkedHashMap(values: _*))

ContextExtension(values.toMap)
}
}
Expand Down
Loading

0 comments on commit 5ad896f

Please sign in to comment.