Commit 969a564
pack-bitmap-write: drop unused pack_idx_entry parameters
Our write_selected_commits_v1() function takes an array of
pack_idx_entry structs. We used to need them for computing commit
positions, but since aa30162 (bitmap: move `get commit positions`
code to `bitmap_writer_finish`, 2022-08-14), the caller passes in a
separate array of positions for us. We can drop the unused array (and
its matching length parameter).
Likewise, when we added write_lookup_table() in 93eb41e
(pack-bitmap-write.c: write lookup table extension, 2022-08-14), it
receives the same array of positions. So its "index" parameter was never
used at all.
Signed-off-by: Jeff King <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 761416e commit 969a564
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
653 | | - | |
654 | 652 | | |
655 | 653 | | |
656 | 654 | | |
| |||
685 | 683 | | |
686 | 684 | | |
687 | 685 | | |
688 | | - | |
689 | | - | |
690 | 686 | | |
691 | 687 | | |
692 | 688 | | |
| |||
808 | 804 | | |
809 | 805 | | |
810 | 806 | | |
811 | | - | |
| 807 | + | |
812 | 808 | | |
813 | 809 | | |
814 | | - | |
| 810 | + | |
815 | 811 | | |
816 | 812 | | |
817 | 813 | | |
| |||
0 commit comments