Skip to content

Commit 437a512

Browse files
committed
[FAB-7502] remove unused code in msp
This change set removes unused code in msp package Change-Id: I2357bc920b2462f04c9814d1cd87c4da184d8c62 Signed-off-by: yacovm <yacovm@il.ibm.com>
1 parent 525d214 commit 437a512

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

msp/msp_test.go

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -979,21 +979,6 @@ func getIdentity(t *testing.T, path string) Identity {
979979
return id
980980
}
981981

982-
func getLocalMSPWithError(t *testing.T, dir string) (MSP, error) {
983-
conf, err := GetLocalMspConfig(dir, nil, "DEFAULT")
984-
assert.NoError(t, err)
985-
986-
thisMSP, err := newBccspMsp(MSPv1_0)
987-
assert.NoError(t, err)
988-
ks, err := sw.NewFileBasedKeyStore(nil, filepath.Join(dir, "keystore"), true)
989-
assert.NoError(t, err)
990-
csp, err := sw.New(256, "SHA2", ks)
991-
assert.NoError(t, err)
992-
thisMSP.(*bccspmsp).bccsp = csp
993-
994-
return thisMSP, thisMSP.Setup(conf)
995-
}
996-
997982
func getLocalMSPWithVersionAndError(t *testing.T, dir string, version MSPVersion) (MSP, error) {
998983
conf, err := GetLocalMspConfig(dir, nil, "DEFAULT")
999984
assert.NoError(t, err)
@@ -1045,24 +1030,6 @@ func getLocalMSPWithVersion(t *testing.T, dir string, version MSPVersion) MSP {
10451030
return thisMSP
10461031
}
10471032

1048-
func getLocalMSPWithName(t *testing.T, name, dir string) MSP {
1049-
conf, err := GetLocalMspConfig(dir, nil, name)
1050-
assert.NoError(t, err)
1051-
1052-
thisMSP, err := newBccspMsp(MSPv1_0)
1053-
assert.NoError(t, err)
1054-
ks, err := sw.NewFileBasedKeyStore(nil, filepath.Join(dir, "keystore"), true)
1055-
assert.NoError(t, err)
1056-
csp, err := sw.New(256, "SHA2", ks)
1057-
assert.NoError(t, err)
1058-
thisMSP.(*bccspmsp).bccsp = csp
1059-
1060-
err = thisMSP.Setup(conf)
1061-
assert.NoError(t, err)
1062-
1063-
return thisMSP
1064-
}
1065-
10661033
func TestMSPIdentityIdentifier(t *testing.T) {
10671034
// testdata/mspid
10681035
// 1) a key and a signcert (used to populate the default signing identity) with the cert having a HighS signature

0 commit comments

Comments
 (0)