Patchwork D12609: obsolete: remove two unused constants

login
register
mail settings
Submitter phabricator
Date May 5, 2022, 6:51 p.m.
Message ID <differential-rev-PHID-DREV-by3our5j4hmjwalkph4u-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50961/
State New
Headers show

Comments

phabricator - May 5, 2022, 6:51 p.m.
durin42 created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  I'm not sure what these constants were intended for, but they have no
  users so it's time to say goodbye.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12609

AFFECTED FILES
  mercurial/obsolete.py

CHANGE DETAILS




To: durin42, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/obsolete.py b/mercurial/obsolete.py
--- a/mercurial/obsolete.py
+++ b/mercurial/obsolete.py
@@ -338,8 +338,6 @@ 
 _fm1nodesha256size = _calcsize(_fm1nodesha256)
 _fm1fsize = _calcsize(_fm1fixed)
 _fm1parentnone = 3
-_fm1parentshift = 14
-_fm1parentmask = _fm1parentnone << _fm1parentshift
 _fm1metapair = b'BB'
 _fm1metapairsize = _calcsize(_fm1metapair)