Patchwork [2,of,2] revlog: remove unused shaoffset constants

login
register
mail settings
Submitter Yuya Nishihara
Date Aug. 2, 2015, 7:35 a.m.
Message ID <a9bb6530d13ad0e50ec1.1438500911@mimosa>
Download mbox | patch
Permalink /patch/10081/
State Accepted
Headers show

Comments

Yuya Nishihara - Aug. 2, 2015, 7:35 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1438485379 -32400
#      Sun Aug 02 12:16:19 2015 +0900
# Node ID a9bb6530d13ad0e50ec109546f434a91b689116a
# Parent  4a526db25dcac847aa3add1886c591a334601abf
revlog: remove unused shaoffset constants

Call sites were removed at 61c9bc3da402, "revlog: remove lazy index".
Pierre-Yves David - Aug. 3, 2015, 6:40 p.m.
On 08/02/2015 12:35 AM, Yuya Nishihara wrote:
> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1438485379 -32400
> #      Sun Aug 02 12:16:19 2015 +0900
> # Node ID a9bb6530d13ad0e50ec109546f434a91b689116a
> # Parent  4a526db25dcac847aa3add1886c591a334601abf
> revlog: remove unused shaoffset constants

pushed to the clowncopter,

thanks.

Patch

diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -104,7 +104,6 @@  def decompress(bin):
 # 20 bytes: parent 2 nodeid
 # 20 bytes: nodeid
 indexformatv0 = ">4l20s20s20s"
-v0shaoffset = 56
 
 class revlogoldio(object):
     def __init__(self):
@@ -150,7 +149,6 @@  class revlogoldio(object):
 #  4 bytes: parent 2 rev
 # 32 bytes: nodeid
 indexformatng = ">Qiiiiii20s12x"
-ngshaoffset = 32
 versionformat = ">I"
 
 # corresponds to uncompressed length of indexformatng (2 gigs, 4-byte