Clean up unused types & function comments (#9691)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terence tsao
2021-09-28 14:21:07 -07:00
committed by GitHub
parent 2a2239d937
commit 806bcf1d29
10 changed files with 8 additions and 16 deletions

View File

@@ -10,9 +10,6 @@ import (
// a Committee struct.
var ErrNotCommittee = errors.New("object is not a committee struct")
// ErrNonCommitteeKey will be returned when the committee key does not exist in cache.
var ErrNonCommitteeKey = errors.New("committee key does not exist")
// Committees defines the shuffled committees seed.
type Committees struct {
CommitteeCount uint64

View File

@@ -24,7 +24,7 @@ import (
// GossipTypeMapping.
var ErrMessageNotMapped = errors.New("message type is not mapped to a PubSub topic")
// Broadcasts a message to the p2p network, the message is assumed to be
// Broadcast a message to the p2p network, the message is assumed to be
// broadcasted to the current fork.
func (s *Service) Broadcast(ctx context.Context, msg proto.Message) error {
ctx, span := trace.StartSpan(ctx, "p2p.Broadcast")

View File

@@ -1,7 +1,7 @@
package testing
import (
metadata "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1/metadata"
"github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1/metadata"
)
// MockMetadataProvider is a fake implementation of the MetadataProvider interface.

View File

@@ -48,11 +48,6 @@ type eth1DataSingleVote struct {
blockHeight *big.Int
}
type eth1DataAggregatedVote struct {
data eth1DataSingleVote
votes int
}
// blockData required to create a beacon block.
type blockData struct {
ParentRoot []byte

View File

@@ -8,7 +8,7 @@ import (
types "github.com/prysmaticlabs/eth2-types"
"github.com/prysmaticlabs/prysm/beacon-chain/core"
"github.com/prysmaticlabs/prysm/beacon-chain/core/altair"
transition "github.com/prysmaticlabs/prysm/beacon-chain/core/transition"
"github.com/prysmaticlabs/prysm/beacon-chain/core/transition"
"github.com/prysmaticlabs/prysm/beacon-chain/db/filters"
"github.com/prysmaticlabs/prysm/beacon-chain/state"
"github.com/prysmaticlabs/prysm/encoding/bytesutil"

View File

@@ -1,5 +1,5 @@
/*
Package featureconfig defines which features are enabled for runtime
Package features defines which features are enabled for runtime
in order to selectively enable certain features to maintain a stable runtime.
The process for implementing new features using this package is as follows:

View File

@@ -3,7 +3,7 @@ package wrapper
import (
"github.com/prysmaticlabs/go-bitfield"
pb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
metadata "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1/metadata"
"github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1/metadata"
"github.com/prysmaticlabs/prysm/runtime/version"
"google.golang.org/protobuf/proto"
)

View File

@@ -26,7 +26,7 @@ import (
"github.com/prysmaticlabs/prysm/testing/util"
prysmTime "github.com/prysmaticlabs/prysm/time"
logTest "github.com/sirupsen/logrus/hooks/test"
grpc "google.golang.org/grpc"
"google.golang.org/grpc"
"gopkg.in/d4l3k/messagediff.v1"
)

View File

@@ -24,7 +24,7 @@ import (
testing2 "github.com/prysmaticlabs/prysm/validator/db/testing"
"github.com/prysmaticlabs/prysm/validator/graffiti"
logTest "github.com/sirupsen/logrus/hooks/test"
grpc "google.golang.org/grpc"
"google.golang.org/grpc"
"google.golang.org/protobuf/types/known/timestamppb"
)

View File

@@ -27,7 +27,7 @@ import (
dbTest "github.com/prysmaticlabs/prysm/validator/db/testing"
"github.com/sirupsen/logrus"
logTest "github.com/sirupsen/logrus/hooks/test"
grpc "google.golang.org/grpc"
"google.golang.org/grpc"
"google.golang.org/protobuf/types/known/emptypb"
)