Skip to content

Commit

Permalink
Remove unused code (#11345)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain authored Aug 29, 2022
1 parent 4796827 commit be9847f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
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

0 comments on commit be9847f

Please sign in to comment.