Skip to content

Commit 39a0dee

Browse files
committed
[FAB-3704]Remove unused vars in ./common/
https://jira.hyperledger.org/browse/FAB-3704 Change-Id: If7a690c5276d0881b0fb5b9e6d526896870a6985 Signed-off-by: grapebaba <[email protected]>
1 parent e754035 commit 39a0dee

File tree

4 files changed

+1
-14
lines changed

4 files changed

+1
-14
lines changed

common/cauthdsl/cauthdsl_test.go

-4
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@ func toSignedData(data [][]byte, identities [][]byte, signatures [][]byte) ([]*c
9393
type mockDeserializer struct {
9494
}
9595

96-
func NewMockDeserializer() msp.IdentityDeserializer {
97-
return &mockDeserializer{}
98-
}
99-
10096
func (md *mockDeserializer) DeserializeIdentity(serializedIdentity []byte) (msp.Identity, error) {
10197
return &mockIdentity{idBytes: serializedIdentity}, nil
10298
}

common/errors/errors.go

-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,12 @@ import (
2222
"fmt"
2323
"regexp"
2424
"runtime"
25-
26-
logging "github.com/op/go-logging"
2725
)
2826

2927
// MaxCallStackLength is the maximum length of the stored call stack
3028
const MaxCallStackLength = 30
3129

3230
var (
33-
errorLogger = logging.MustGetLogger("error")
3431
componentPattern = "[A-Za-z]{3}"
3532
reasonPattern = "[0-9]{3}"
3633
)

common/genesis/genesis.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ const (
2727
msgVersion = int32(1)
2828

2929
// These values are fixed for the genesis block.
30-
lastModified = 0
31-
epoch = 0
30+
epoch = 0
3231
)
3332

3433
// Factory facilitates the creation of genesis blocks.

common/ledger/blkstorage/fsblkstorage/blockfile_mgr.go

-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ var (
4242
blkMgrInfoKey = []byte("blkMgrInfo")
4343
)
4444

45-
type conf struct {
46-
blockfilesDir string
47-
maxBlockfileSize int
48-
}
49-
5045
type blockfileMgr struct {
5146
rootDir string
5247
conf *Conf

0 commit comments

Comments
 (0)