]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Remove md5sum fields from the encoder/decoder helper structs.
authornsf <no.smile.face@gmail.com>
Tue, 3 Jul 2012 23:29:47 +0000 (05:29 +0600)
committernsf <no.smile.face@gmail.com>
Tue, 3 Jul 2012 23:29:47 +0000 (05:29 +0600)
There is no need for them.

torrent/file.go

index 9bd2285d9c639416447f606eeddb77ee3936d467..87beef5b355da033ad9e61fefc65c4d1474d8017 100644 (file)
@@ -137,7 +137,6 @@ func LoadFromFile(filename string) (*MetaInfo, error) {
 type torrent_info_file struct {
        Path   []string `bencode:"path"`
        Length int64    `bencode:"length"`
-       MD5Sum []byte   `bencode:"md5sum,omitempty"`
 }
 
 type torrent_info struct {
@@ -145,7 +144,6 @@ type torrent_info struct {
        Pieces      []byte              `bencode:"pieces"`
        Name        string              `bencode:"name"`
        Length      int64               `bencode:"length,omitempty"`
-       MD5Sum      []byte              `bencode:"md5sum,omitempty"`
        Private     bool                `bencode:"private,omitempty"`
        Files       []torrent_info_file `bencode:"files,omitempty"`
 }