Skip to content

Commit 5d6fe7d

Browse files
author
Jason Yellick
committed
FAB-10829 Remove unused java hash file/function
The java platform comment claims that the call to the hash computation function affects the tar writer, but it does not in fact, and the hash is discarded, so, this is all useless code. Removing. Change-Id: Iad9c9bbbd4bdb7805f4d234db4091a1fad3448b2 Signed-off-by: Jason Yellick <jyellick@us.ibm.com>
1 parent 77d4b81 commit 5d6fe7d

File tree

2 files changed

+0
-88
lines changed

2 files changed

+0
-88
lines changed

core/chaincode/platforms/java/hash.go

Lines changed: 0 additions & 80 deletions
This file was deleted.

core/chaincode/platforms/java/platform.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,6 @@ func (javaPlatform *Platform) GetDeploymentPayload(spec *pb.ChaincodeSpec) ([]by
5252
gw := gzip.NewWriter(inputbuf)
5353
tw := tar.NewWriter(gw)
5454

55-
//ignore the generated hash. Just use the tw
56-
//The hash could be used in a future enhancement
57-
//to check, warn of duplicate installs etc.
58-
_, err = collectChaincodeFiles(spec, tw)
59-
if err != nil {
60-
return nil, err
61-
}
62-
6355
err = writeChaincodePackage(spec, tw)
6456

6557
tw.Close()

0 commit comments

Comments
 (0)