# HG changeset patch # User Patrick Mezard # Date 2009-12-23 18:31:48 # Node ID ef5b537433da0165fa6e194b1498dcefe330ff1a # Parent 7936cd261dc9255bd7021b360b09c773344d17a6 patch: drop unused hunk.newctrl() diff --git a/mercurial/patch.py b/mercurial/patch.py --- a/mercurial/patch.py +++ b/mercurial/patch.py @@ -715,14 +715,6 @@ class hunk(object): def old(self, fuzz=0, toponly=False): return self.fuzzit(self.a, fuzz, toponly) - def newctrl(self): - res = [] - for x in self.hunk: - c = x[0] - if c == ' ' or c == '+': - res.append(x) - return res - def new(self, fuzz=0, toponly=False): return self.fuzzit(self.b, fuzz, toponly)