From 53b592bcf7777648fa67f9b7000a8065d3af335e Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 2 Feb 2018 14:17:27 -0600 Subject: [PATCH] blockchain: Remove unused error code. This removes the ErrUnparseableSSGen error code since it is no longer used. --- blockchain/error.go | 5 ----- blockchain/validate_test.go | 4 ---- 2 files changed, 9 deletions(-) diff --git a/blockchain/error.go b/blockchain/error.go index 1e10a8e107..bab33add21 100644 --- a/blockchain/error.go +++ b/blockchain/error.go @@ -324,10 +324,6 @@ const ( // of an SStx did not match those found in the commitment outputs. ErrSStxCommitment - // ErrUnparseableSSGen indicates that the SSGen block vote or votebits data - // was unparseable from the null data outputs. - ErrUnparseableSSGen - // ErrInvalidSSGenInput indicates that the input SStx to the SSGen tx was // invalid because it was not an SStx. ErrInvalidSSGenInput @@ -520,7 +516,6 @@ var errorCodeStrings = map[ErrorCode]string{ ErrRevocationsMismatch: "ErrRevocationsMismatch", ErrTooManyRevocations: "ErrTooManyRevocations", ErrSStxCommitment: "ErrSStxCommitment", - ErrUnparseableSSGen: "ErrUnparseableSSGen", ErrInvalidSSGenInput: "ErrInvalidSSGenInput", ErrSSGenPayeeNum: "ErrSSGenPayeeNum", ErrSSGenPayeeOuts: "ErrSSGenPayeeOuts", diff --git a/blockchain/validate_test.go b/blockchain/validate_test.go index 74ef18c2a4..8003998f9a 100644 --- a/blockchain/validate_test.go +++ b/blockchain/validate_test.go @@ -1140,10 +1140,6 @@ func TestBlockValidationRules(t *testing.T) { err) } - // ---------------------------------------------------------------------------- - // ErrUnparseableSSGen - // This should be impossible to hit unless there's a local memory failure. - // ---------------------------------------------------------------------------- // ErrInvalidSSGenInput // It doesn't look like this one can actually be hit since checking if