From 0f6a737ca798ae9c8e0c634715c5cb66681a278a Mon Sep 17 00:00:00 2001 From: Frederik Gladhorn Date: Fri, 22 Nov 2019 10:18:05 +0100 Subject: Remove unused functions from branch_qt.py These were copied from the sh version of the script. It turns out that we don't need them. Change-Id: I4c612fa16415c027199720acaf9cad22a51c7ed4 Reviewed-by: Paul Wicking --- scripts/qt/branch_qt.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/scripts/qt/branch_qt.py b/scripts/qt/branch_qt.py index 11100b38..44899613 100755 --- a/scripts/qt/branch_qt.py +++ b/scripts/qt/branch_qt.py @@ -103,20 +103,6 @@ class QtBranching: else: subprocess.run(*args, **kwargs) - def is_phase_done(self, repo: git.Repo) -> bool: - """Test if some part of the process has already been run for a repository. - - This script adds a config section where the state is tracked. - """ - config = repo.config_reader() - state = str(config.get_value(f'qtbranching "{self.toBranch}"', 'done')) - return state == self.mode.name - - def write_done_phase(self, repo: git.Repo) -> None: - """Set the current phase to done.""" - config = repo.config_writer() - state = config.set_value(f'qtbranching "{self.toBranch}"', 'done', self.mode.name) - def run(self) -> None: self.sanity_check() self.init_repository() -- cgit v1.2.3