Commit c2f32be
packfile: inline custom read_object()
When the pack code was split into its own file[1], it got a copy of the
static read_object() function. But there's only one caller here, so we
could just inline it. And it's worth doing so, as the name read_object()
invites comparisons to the public read_object_file(), but the two don't
behave quite the same.
[1] The move happened over several commits, but the relevant one here is
f1d8130 (pack: move clear_delta_base_cache(), packed_object_info(),
unpack_entry(), 2017-08-18).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 0ba05cf commit c2f32be
1 file changed
+9
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1650 | 1650 | | |
1651 | 1651 | | |
1652 | 1652 | | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | | - | |
1660 | | - | |
1661 | | - | |
1662 | | - | |
1663 | | - | |
1664 | | - | |
1665 | | - | |
1666 | | - | |
1667 | | - | |
1668 | | - | |
1669 | 1653 | | |
1670 | 1654 | | |
1671 | 1655 | | |
| |||
1798 | 1782 | | |
1799 | 1783 | | |
1800 | 1784 | | |
| 1785 | + | |
| 1786 | + | |
1801 | 1787 | | |
1802 | 1788 | | |
1803 | 1789 | | |
1804 | 1790 | | |
1805 | 1791 | | |
1806 | 1792 | | |
1807 | 1793 | | |
1808 | | - | |
| 1794 | + | |
| 1795 | + | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
1809 | 1801 | | |
1810 | 1802 | | |
1811 | 1803 | | |
| |||
0 commit comments