remove a few hints and warnings (#603)

This commit is contained in:
Dustin Brody 2019-11-28 12:50:19 +00:00 committed by Jacek Sieka
parent 45b7595ba1
commit 8f2e523d26
5 changed files with 3 additions and 7 deletions

View File

@ -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)

View File

@ -17,8 +17,6 @@ import
unittest,
# Specs
../../beacon_chain/spec/datatypes,
# Internals
../../beacon_chain/ssz,
# Mock helpers
../mocking/mock_genesis,
../testutil

View File

@ -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]

View File

@ -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,

View File

@ -8,7 +8,7 @@
{.used.}
import
options, unittest, chronicles,
unittest,
./testutil,
../beacon_chain/spec/[beaconstate, datatypes, digest, validator],
../beacon_chain/[state_transition, ssz]