remove or comment out unused code

This commit is contained in:
Anton Kaliaev
2019-02-06 15:16:38 +04:00
parent da33dd04cc
commit ffd3bf8448
10 changed files with 163 additions and 185 deletions

View File

@ -26,17 +26,17 @@ func NewDominoOp(key, input, output string) DominoOp {
}
}
func DominoOpDecoder(pop ProofOp) (ProofOperator, error) {
if pop.Type != ProofOpDomino {
panic("unexpected proof op type")
}
var op DominoOp // a bit strange as we'll discard this, but it works.
err := amino.UnmarshalBinaryLengthPrefixed(pop.Data, &op)
if err != nil {
return nil, cmn.ErrorWrap(err, "decoding ProofOp.Data into SimpleValueOp")
}
return NewDominoOp(string(pop.Key), op.Input, op.Output), nil
}
// func DominoOpDecoder(pop ProofOp) (ProofOperator, error) {
// if pop.Type != ProofOpDomino {
// panic("unexpected proof op type")
// }
// var op DominoOp // a bit strange as we'll discard this, but it works.
// err := amino.UnmarshalBinaryLengthPrefixed(pop.Data, &op)
// if err != nil {
// return nil, cmn.ErrorWrap(err, "decoding ProofOp.Data into SimpleValueOp")
// }
// return NewDominoOp(string(pop.Key), op.Input, op.Output), nil
// }
func (dop DominoOp) ProofOp() ProofOp {
bz := amino.MustMarshalBinaryLengthPrefixed(dop)