diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-11-22 10:18:05 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-11-22 15:41:39 +0100 |
commit | 0f6a737ca798ae9c8e0c634715c5cb66681a278a (patch) | |
tree | a37c4c114d661d26d7160c43163294bb3210527d | |
parent | 69674e0dc77f4ed03ddf94a8aef64485d89224ad (diff) |
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 <paul.wicking@qt.io>
-rwxr-xr-x | scripts/qt/branch_qt.py | 14 |
1 files changed, 0 insertions, 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() |