Skip to content

Commit 8477cf5

Browse files
committed
go: drop unused sctError type
1 parent 47ce210 commit 8477cf5

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

go/types.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -330,24 +330,6 @@ func (m *MerkleTreeLeaf) X509Certificate() (*x509.Certificate, error) {
330330
return x509.ParseCertificate(m.TimestampedEntry.X509Entry.Data)
331331
}
332332

333-
type sctError int
334-
335-
var (
336-
ErrInvalidVersion error = sctError(1)
337-
ErrNotEnoughBuffer error = sctError(2)
338-
)
339-
340-
func (e sctError) Error() string {
341-
switch e {
342-
case ErrInvalidVersion:
343-
return "invalid SCT version detected"
344-
case ErrNotEnoughBuffer:
345-
return "provided buffer was too small"
346-
default:
347-
return "unknown error"
348-
}
349-
}
350-
351333
// URI paths for Log requests; see section 4.
352334
const (
353335
AddChainPath = "/ct/v1/add-chain"

0 commit comments

Comments
 (0)