Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused code #11345

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions api/client/beacon/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,13 @@ import (
// OriginData represents the BeaconState and SignedBeaconBlock necessary to start an empty Beacon Node
// using Checkpoint Sync.
type OriginData struct {
wsd *WeakSubjectivityData // nolint:unused
sb []byte
bb []byte
st state.BeaconState
b interfaces.SignedBeaconBlock
vu *detect.VersionedUnmarshaler
br [32]byte
sr [32]byte
sb []byte
bb []byte
st state.BeaconState
b interfaces.SignedBeaconBlock
vu *detect.VersionedUnmarshaler
br [32]byte
sr [32]byte
}

// SaveBlock saves the downloaded block to a unique file in the given path.
Expand Down
5 changes: 0 additions & 5 deletions beacon-chain/execution/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,6 @@ func (s *Service) updateBeaconNodeStats() {
s.cfg.beaconNodeStatsUpdater.Update(bs)
}

func (s *Service) updateCurrHttpEndpoint(endpoint network.Endpoint) { // nolint:unused
s.cfg.currHttpEndpoint = endpoint
s.updateBeaconNodeStats()
}

func (s *Service) updateConnectedETH1(state bool) {
s.connectedETH1 = state
s.updateBeaconNodeStats()
Expand Down
1 change: 0 additions & 1 deletion beacon-chain/state/stategen/replayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ type chainer interface {
}

type stateReplayer struct {
s state.BeaconState // nolint:unused
target types.Slot
method retrievalMethod
chainer chainer
Expand Down