remove unused val
This commit is contained in:
parent
4acce04e77
commit
e165d35273
1 changed files with 0 additions and 1 deletions
|
|
@ -98,7 +98,6 @@ final class ByteString private (bytes: Array[Byte], startIndex: Int, endIndex: I
|
|||
override def slice(from: Int, until: Int): ByteString = {
|
||||
val newStartIndex = math.max(from, 0) + startIndex
|
||||
val newEndIndex = math.min(until, length) + startIndex
|
||||
val newLength = math.max(newEndIndex - newStartIndex, 0)
|
||||
if (newEndIndex - newStartIndex <= 0) ByteString.empty
|
||||
else new ByteString(bytes, newStartIndex, newEndIndex)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue