]> Sergey Matveev's repositories - btrtrc.git/blobdiff - misc.go
Use metainfo.Hash for piece and info hashes
[btrtrc.git] / misc.go
diff --git a/misc.go b/misc.go
index aec997d46b30f36f0a27486746fadfa1d4e53829..147b657cc67e3e3257b9d46b651d4ebe9fe5d304 100644 (file)
--- a/misc.go
+++ b/misc.go
@@ -21,10 +21,6 @@ const (
        minDialTimeout     = 5 * time.Second
 )
 
-type (
-       pieceSum [20]byte
-)
-
 func lastChunkSpec(pieceLength, chunkSize pp.Integer) (cs chunkSpec) {
        cs.Begin = (pieceLength - 1) / chunkSize * chunkSize
        cs.Length = pieceLength - cs.Begin