From a0c89e742ec6938c5093dbea910cd20307918a36 Mon Sep 17 00:00:00 2001 From: Benjamin Schwarze Date: Fri, 31 May 2013 22:27:56 +0200 Subject: [PATCH] remove unused git function is_current_branch (looks like it returns always True anyway which might be wrong) --- library/source_control/git | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/library/source_control/git b/library/source_control/git index 4343867655b..8b29e0b80ae 100644 --- a/library/source_control/git +++ b/library/source_control/git @@ -183,16 +183,6 @@ def is_local_branch(git_path, module, dest, branch): else: return False -def is_current_branch(git_path, module, dest, branch): - branches = get_branches(git_path, module, dest) - for b in branches: - if b.startswith('* '): - cur_branch = b - if branch == cur_branch or '* %s' % branch == cur_branch: - return True - else: - return True - def is_not_a_branch(git_path, module, dest): branches = get_branches(git_path, module, dest) for b in branches: