Patchwork D5908: match: delete unused abs() (API)

login
register
mail settings
Submitter phabricator
Date Feb. 9, 2019, 10:23 p.m.
Message ID <07c74832f66d539f3dd7e02f5f20c05d@localhost.localdomain>
Download mbox | patch
Permalink /patch/38616/
State Not Applicable
Headers show

Comments

phabricator - Feb. 9, 2019, 10:23 p.m.
martinvonz updated this revision to Diff 13973.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5908?vs=13935&id=13973

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

AFFECTED FILES
  mercurial/match.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/match.py b/mercurial/match.py
--- a/mercurial/match.py
+++ b/mercurial/match.py
@@ -277,11 +277,6 @@ 
     # by recursive traversal is visited.
     traversedir = None
 
-    def abs(self, f):
-        '''Convert a repo path back to path that is relative to the root of the
-        matcher.'''
-        return f
-
     def rel(self, f):
         '''Convert repo path back to path that is relative to cwd of matcher.'''
         return util.pathto(self._root, self._cwd, f)
@@ -715,7 +710,6 @@ 
         m.bad = m1.bad
         m.explicitdir = m1.explicitdir
         m.traversedir = m1.traversedir
-        m.abs = m1.abs
         m.rel = m1.rel
         return m
     if m2.always():
@@ -811,8 +805,6 @@ 
     >>> m1.bad = bad
     >>> m2.bad(b'x.txt', b'No such file')
     sub/x.txt: No such file
-    >>> m2.abs(b'c.txt')
-    'sub/c.txt'
     """
 
     def __init__(self, path, matcher):
@@ -832,9 +824,6 @@ 
     def bad(self, f, msg):
         self._matcher.bad(self._path + "/" + f, msg)
 
-    def abs(self, f):
-        return self._matcher.abs(self._path + "/" + f)
-
     def rel(self, f):
         return self._matcher.rel(self._path + "/" + f)