Skip to content

Commit c80f4c7

Browse files
felipecgitster
authored andcommitted
remote-bzr: cleanup CustomTree
This code was not used at all. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7e6a0cc commit c80f4c7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

contrib/remote-helpers/git-remote-bzr

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,6 @@ class CustomTree():
385385
def __init__(self, repo, revid, parents, files):
386386
global files_cache
387387

388-
self.repo = repo
389-
self.revid = revid
390-
self.parents = parents
391388
self.updates = {}
392389

393390
def copy_tree(revid):
@@ -435,7 +432,7 @@ class CustomTree():
435432
if basename == '':
436433
return None
437434
fid = bzrlib.generate_ids.gen_file_id(path)
438-
d = add_entry(fid, dirname, 'directory')
435+
add_entry(fid, dirname, 'directory')
439436
return fid
440437

441438
def add_entry(fid, path, kind, mode = None):
@@ -458,7 +455,6 @@ class CustomTree():
458455
(None, executable))
459456
self.files[path] = change[0]
460457
changes.append(change)
461-
return change
462458

463459
def update_entry(fid, path, kind, mode = None):
464460
dirname, basename = os.path.split(path)
@@ -480,7 +476,6 @@ class CustomTree():
480476
(None, executable))
481477
self.files[path] = change[0]
482478
changes.append(change)
483-
return change
484479

485480
def remove_entry(fid, path, kind):
486481
dirname, basename = os.path.split(path)
@@ -495,7 +490,6 @@ class CustomTree():
495490
(None, None))
496491
del self.files[path]
497492
changes.append(change)
498-
return change
499493

500494
for fid, f in self.updates.iteritems():
501495
path = f['path']

0 commit comments

Comments
 (0)