Patchwork D11426: dirstate: removed the now unused `_add` method

login
register
mail settings
Submitter phabricator
Date Sept. 16, 2021, 2:42 p.m.
Message ID <differential-rev-PHID-DREV-flfma4o7ynskx2jqgdiq-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49742/
State Superseded
Headers show

Comments

phabricator - Sept. 16, 2021, 2:42 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -744,10 +744,6 @@ 
         self._addpath(f, possibly_dirty=True)
         self._map.copymap.pop(f, None)
 
-    def _add(self, filename):
-        """internal function to mark a file as added"""
-        self._addpath(filename, added=True)
-
     def _drop(self, filename):
         """internal function to drop a file from the dirstate"""
         if self._map.dropfile(filename):