Skip to content

Commit 202cc02

Browse files
committed
pack: remove unused variables
These variables are no longer used. They were based on a hard-coded length of 20 for an object ID and are no longer correct now that we support SHA-256. Since they serve no useful purpose, remove them.
1 parent ba3cc2a commit 202cc02

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

pack/index_decode.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ const (
3434
// V2 header.
3535
indexOffsetV2Start = indexV2Width + indexFanoutWidth
3636

37-
// indexObjectNameWidth is the width of a SHA1 object name.
38-
indexObjectNameWidth = 20
3937
// indexObjectCRCWidth is the width of the CRC accompanying each object
4038
// in V2.
4139
indexObjectCRCWidth = 4
@@ -45,13 +43,6 @@ const (
4543
// indexObjectLargeOffsetWidth is the width of the optional large offset
4644
// encoded into the small offset.
4745
indexObjectLargeOffsetWidth = 8
48-
49-
// indexObjectEntryV1Width is the width of one contiguous object entry
50-
// in V1.
51-
indexObjectEntryV1Width = indexObjectNameWidth + indexObjectSmallOffsetWidth
52-
// indexObjectEntryV2Width is the width of one non-contiguous object
53-
// entry in V2.
54-
indexObjectEntryV2Width = indexObjectNameWidth + indexObjectCRCWidth + indexObjectSmallOffsetWidth
5546
)
5647

5748
var (

0 commit comments

Comments
 (0)