[MERGE] versionedfile.py code cleanups
Robert Collins
robertc at robertcollins.net
Thu Sep 20 01:08:08 BST 2007
On Thu, 2007-09-20 at 10:01 +1000, Ian Clatworthy wrote:
> Robert Collins wrote:
> > On Thu, 2007-09-20 at 09:42 +1000, Ian Clatworthy wrote:
> >> @@ -424,7 +426,8 @@
> >> def annotate(self, version_id):
> >> return list(self.annotate_iter(version_id))
> >>
> >> - def _apply_delta(self, lines, delta):
> >> + @staticmethod
> >> + def _apply_delta(lines, delta):
> >> """Apply delta to lines."""
> >> lines = list(lines)
> >> offset = 0
> >
> > Whats this for?
>
> It's only used in knit.py as best I can find. It has nothing to do with
> the object so it can be a plain function instead of a static method if
> you'd prefer.
Well changing it without changing anything else seems to suggest it is
currently unused :)
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070920/3e9cd743/attachment.pgp
More information about the bazaar
mailing list