match: remove override of prefix() from differencematcher
authorYuya Nishihara <yuya@tcha.org>
Sun, 28 May 2017 23:51:30 +0900
changeset 32542 37ea47a50875
parent 32541 3b569745af6c
child 32543 cf7c88986e9f
match: remove override of prefix() from differencematcher It's exactly the same as basematcher.prefix().
mercurial/match.py
--- a/mercurial/match.py	Sat May 27 18:52:46 2017 +0900
+++ b/mercurial/match.py	Sun May 28 23:51:30 2017 +0900
@@ -480,9 +480,6 @@
     def anypats(self):
         return self._m1.anypats() or self._m2.anypats()
 
-    def prefix(self):
-        return not self.always() and not self.isexact() and not self.anypats()
-
     def __repr__(self):
         return ('<differencematcher m1=%r, m2=%r>' % (self._m1, self._m2))