remote-bzr: cleanup CustomTree

This code was not used at all. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Felipe Contreras committed Apr 30, 2013 at 20:09 UTC c80f4c77633df44c5c8418056d2266f35978d172
1 file changed +1 -7
contrib/remote-helpers/git-remote-bzr
+1 -7
@@ -385,9 +385,6 @@ class CustomTree():
385 def __init__(self, repo, revid, parents, files):
386 global files_cache
387
388 - self.repo = repo
389 - self.revid = revid
390 - self.parents = parents
388 self.updates = {}
389
390 def copy_tree(revid):
@@ -435,7 +432,7 @@ class CustomTree():
432 if basename == '':
433 return None
434 fid = bzrlib.generate_ids.gen_file_id(path)
438 - d = add_entry(fid, dirname, 'directory')
435 + add_entry(fid, dirname, 'directory')
436 return fid
437
438 def add_entry(fid, path, kind, mode = None):
@@ -458,7 +455,6 @@ class CustomTree():
455 (None, executable))
456 self.files[path] = change[0]
457 changes.append(change)
461 - return change
458
459 def update_entry(fid, path, kind, mode = None):
460 dirname, basename = os.path.split(path)
@@ -480,7 +476,6 @@ class CustomTree():
476 (None, executable))
477 self.files[path] = change[0]
478 changes.append(change)
483 - return change
479
480 def remove_entry(fid, path, kind):
481 dirname, basename = os.path.split(path)
@@ -495,7 +490,6 @@ class CustomTree():
490 (None, None))
491 del self.files[path]
492 changes.append(change)
498 - return change
493
494 for fid, f in self.updates.iteritems():
495 path = f['path']