remove a few hints and warnings (#603)
This commit is contained in:
parent
45b7595ba1
commit
8f2e523d26
|
@ -269,9 +269,6 @@ template fromSszBytes*[T; N](_: type TypeWithMaxLen[T, N],
|
|||
mixin fromSszBytes
|
||||
fromSszBytes(T, bytes)
|
||||
|
||||
func fromSszBytes(T: type BlsCurveType, bytes: openarray[byte]): auto =
|
||||
init(T, bytes)
|
||||
|
||||
proc readValue*(r: var SszReader, val: var auto) =
|
||||
val = readSszValue(r.stream.readBytes(r.stream.endPos), val.type)
|
||||
|
||||
|
|
|
@ -17,8 +17,6 @@ import
|
|||
unittest,
|
||||
# Specs
|
||||
../../beacon_chain/spec/datatypes,
|
||||
# Internals
|
||||
../../beacon_chain/ssz,
|
||||
# Mock helpers
|
||||
../mocking/mock_genesis,
|
||||
../testutil
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
|
||||
import
|
||||
options, sequtils, unittest,
|
||||
chronicles,
|
||||
./testutil,
|
||||
../beacon_chain/spec/[beaconstate, datatypes, digest],
|
||||
../beacon_chain/[beacon_node_types, block_pool, beacon_chain_db, extras, ssz]
|
||||
|
|
|
@ -5,6 +5,8 @@
|
|||
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
||||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
{.used.}
|
||||
|
||||
import
|
||||
unittest, random, heapqueue, tables, strutils,
|
||||
chronos,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
{.used.}
|
||||
|
||||
import
|
||||
options, unittest, chronicles,
|
||||
unittest,
|
||||
./testutil,
|
||||
../beacon_chain/spec/[beaconstate, datatypes, digest, validator],
|
||||
../beacon_chain/[state_transition, ssz]
|
||||
|
|
Loading…
Reference in New Issue