Commit 39a0dee4 authored by grapebaba's avatar grapebaba
Browse files

[FAB-3704]Remove unused vars in ./common/

https://jira.hyperledger.org/browse/FAB-3704



Change-Id: If7a690c5276d0881b0fb5b9e6d526896870a6985
Signed-off-by: default avatargrapebaba <281165273@qq.com>
parent e754035f
......@@ -93,10 +93,6 @@ func toSignedData(data [][]byte, identities [][]byte, signatures [][]byte) ([]*c
type mockDeserializer struct {
}
func NewMockDeserializer() msp.IdentityDeserializer {
return &mockDeserializer{}
}
func (md *mockDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error) {
return &mockIdentity{idBytes: serializedIdentity}, nil
}
......
......@@ -22,15 +22,12 @@ import (
"fmt"
"regexp"
"runtime"
logging "github.com/op/go-logging"
)
// MaxCallStackLength is the maximum length of the stored call stack
const MaxCallStackLength = 30
var (
errorLogger = logging.MustGetLogger("error")
componentPattern = "[A-Za-z]{3}"
reasonPattern = "[0-9]{3}"
)
......
......@@ -27,8 +27,7 @@ const (
msgVersion = int32(1)
// These values are fixed for the genesis block.
lastModified = 0
epoch = 0
epoch = 0
)
// Factory facilitates the creation of genesis blocks.
......
......@@ -42,11 +42,6 @@ var (
blkMgrInfoKey = []byte("blkMgrInfo")
)
type conf struct {
blockfilesDir string
maxBlockfileSize int
}
type blockfileMgr struct {
rootDir string
conf *Conf
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment