Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenButtolph committed Mar 24, 2024
1 parent c7cc00c commit 87a067e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 2 additions & 7 deletions vms/platformvm/state/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ type State interface {

// TODO: Remove after v1.12.x is activated
type stateBlk struct {
Blk block.Block
Bytes []byte `serialize:"true"`
Status choices.Status `serialize:"true"`
}
Expand Down Expand Up @@ -2286,10 +2285,6 @@ func parseStoredBlock(blkBytes []byte) (block.Block, bool, error) {
return nil, false, err
}

blkState.Blk, err = block.Parse(block.GenesisCodec, blkState.Bytes)
if err != nil {
return nil, false, err
}

return blkState.Blk, true, nil
blk, err = block.Parse(block.GenesisCodec, blkState.Bytes)
return blk, true, err
}
1 change: 0 additions & 1 deletion vms/platformvm/state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1385,7 +1385,6 @@ func TestParsedStateBlock(t *testing.T) {

for _, blk := range blks {
stBlk := stateBlk{
Blk: blk,
Bytes: blk.Bytes(),
Status: choices.Accepted,
}
Expand Down

0 comments on commit 87a067e

Please sign in to comment.