Skip to content

Commit

Permalink
Remove unused functions (#8924)
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed May 23, 2021
1 parent 7dc3d7f commit 09d7efe
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions beacon-chain/db/db.go
Expand Up @@ -6,7 +6,6 @@ import (
"context"

"github.com/prysmaticlabs/prysm/beacon-chain/db/kv"
"github.com/prysmaticlabs/prysm/beacon-chain/db/slasherkv"
)

// NewDB initializes a new DB.
Expand All @@ -20,8 +19,3 @@ func NewDB(ctx context.Context, dirPath string, config *kv.Config) (Database, er
func NewDBFilename(dirPath string) string {
return kv.KVStoreDatafilePath(dirPath)
}

// NewSlasherDB initializes a new DB for slasher.
func NewSlasherDB(ctx context.Context, dirPath string, config *slasherkv.Config) (SlasherDatabase, error) {
return slasherkv.NewKVStore(ctx, dirPath, config)
}
7 changes: 0 additions & 7 deletions fuzz/ssz_encoder_attestations_fuzz.go
Expand Up @@ -10,13 +10,6 @@ import (

var buf = new(bytes.Buffer)

// FuzzSszEncoderAttestation wraps SszEncoderAttestationFuzz in a
// go-fuzz compatible interface
func FuzzSszEncoderAttestation(b []byte) int {
SszEncoderAttestationFuzz(b)
return 0
}

// SszEncoderAttestationFuzz runs network encode/decode for attestations.
func SszEncoderAttestationFuzz(b []byte) {
params.UseMainnetConfig()
Expand Down
6 changes: 0 additions & 6 deletions fuzz/state_fuzz.go
Expand Up @@ -18,12 +18,6 @@ func init() {
})
}

// FuzzState wraps BeaconStateFuzz in a go-fuzz compatible interface
func FuzzState(b []byte) int {
BeaconStateFuzz(b)
return 0
}

// BeaconStateFuzz --
func BeaconStateFuzz(input []byte) {
params.UseMainnetConfig()
Expand Down

0 comments on commit 09d7efe

Please sign in to comment.