Method receiver 's' is not referenced in method's body, consider removing it
66}
67
68// SizeSSZ --
69func (s *PTCStatus) SizeSSZ() int {70 return 1
71}
Method receiver 'b' is not referenced in method's body, consider removing it
326 panic("implement me")
327}
328
329func (b *BeaconBlockBody) SignedExecutionPayloadHeader() (*enginev1.SignedExecutionPayloadHeader, error) {330 panic("implement me")
331}
332
Method receiver 'b' is not referenced in method's body, consider removing it
322 panic("implement me")
323}
324
325func (b *BeaconBlockBody) PayloadAttestations() ([]*eth.PayloadAttestation, error) {326 panic("implement me")
327}
328
Method receiver 'b' is not referenced in method's body, consider removing it
318 panic("implement me")
319}
320
321func (b *BeaconBlockBody) Version() int {322 panic("implement me")
323}
324
Method receiver 'b' is not referenced in method's body, consider removing it
314 panic("implement me")
315}
316
317func (b *BeaconBlockBody) Attestations() []*eth.Attestation {318 panic("implement me")
319}
320
Method receiver 'b' is not referenced in method's body, consider removing it
310}
311
312// BlobKzgCommitments returns the blob kzg commitments in the block.
313func (b *BeaconBlockBody) BlobKzgCommitments() ([][]byte, error) {314 panic("implement me")
315}
316
Method receiver 'b' is not referenced in method's body, consider removing it
305 panic("implement me")
306}
307
308func (b *BeaconBlockBody) SetBLSToExecutionChanges([]*eth.SignedBLSToExecutionChange) error {309 panic("implement me")
310}
311
Method receiver 'b' is not referenced in method's body, consider removing it
301 panic("implement me")
302}
303
304func (b *BeaconBlockBody) SetExecution(interfaces.ExecutionData) error {305 panic("implement me")
306}
307
Method receiver 'b' is not referenced in method's body, consider removing it
297 panic("implement me")
298}
299
300func (b *BeaconBlockBody) SetSyncAggregate(*eth.SyncAggregate) error {301 panic("implement me")
302}
303
Method receiver 'b' is not referenced in method's body, consider removing it
293 panic("implement me")
294}
295
296func (b *BeaconBlockBody) SetVoluntaryExits([]*eth.SignedVoluntaryExit) {297 panic("implement me")
298}
299
Method receiver 'b' is not referenced in method's body, consider removing it
289 panic("implement me")
290}
291
292func (b *BeaconBlockBody) SetDeposits([]*eth.Deposit) {293 panic("implement me")
294}
295
Method receiver 'b' is not referenced in method's body, consider removing it
285 panic("implement me")
286}
287
288func (b *BeaconBlockBody) SetAttestations([]*eth.Attestation) {289 panic("implement me")
290}
291
Method receiver 'b' is not referenced in method's body, consider removing it
281 panic("implement me")
282}
283
284func (b *BeaconBlockBody) SetAttesterSlashings([]*eth.AttesterSlashing) {285 panic("implement me")
286}
287
Method receiver 'b' is not referenced in method's body, consider removing it
277 panic("implement me")
278}
279
280func (b *BeaconBlockBody) SetProposerSlashings([]*eth.ProposerSlashing) {281 panic("implement me")
282}
283
Method receiver 'b' is not referenced in method's body, consider removing it
273 panic("implement me")
274}
275
276func (b *BeaconBlockBody) SetGraffiti([]byte) {277 panic("implement me")
278}
279
Method receiver 'b' is not referenced in method's body, consider removing it
269 panic("implement me")
270}
271
272func (b *BeaconBlockBody) SetEth1Data(*eth.Eth1Data) {273 panic("implement me")
274}
275
Method receiver 'b' is not referenced in method's body, consider removing it
265 panic("implement me")
266}
267
268func (b *BeaconBlockBody) SetRandaoReveal([]byte) {269 panic("implement me")
270}
271
Method receiver 'b' is not referenced in method's body, consider removing it
261 panic("implement me")
262}
263
264func (b *BeaconBlock) SetStateRoot(root []byte) {265 panic("implement me")
266}
267
Description
Methods with unused receivers can be a symptom of unfinished refactoring or a bug. To keep the same method signature, omit the receiver name or '_' as it is unused.
Bad practice
func (f *Unix) Name() string {
return "unix"
}
func (_ *Unix) Name() string {
return "unix"
}
Recommended
func (*Unix) Name() string {
return "unix"
}