diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 652022e..7ca6874 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -8,7 +8,7 @@ The format is based on `Keep a Changelog ` [unreleased] ------------ -- Remove old unused code from before the big redirection (@kcranston, #449) +- Remove old unused code from before the big redirection (@kcranston, #449, #465) - Reoganize github module into smaller chunks (@kcranston, #447) - Check for working ssh keys before git commands that connect to github (@kcranston, #366) - Fix bug where git pull method was still trying to use master as the default branch rather than main (@kcranston, #376) diff --git a/abcclassroom/git.py b/abcclassroom/git.py index 5487547..941c872 100644 --- a/abcclassroom/git.py +++ b/abcclassroom/git.py @@ -6,8 +6,6 @@ # Methods for command line git operations. See github.py for # methods that involve the GitHub API -import random -import string import subprocess import sys @@ -142,20 +140,6 @@ def repo_changed(directory): return bool(ret.stdout) -# TODO: DO WE USE THIS? i can't find it called anywhere -def new_branch(directory, name=None): - """Create a new git branch in directory""" - if name is None: - postfix = "".join( - [random.choice(string.ascii_letters) for n in range(4)] - ) - name = "new-material-{}".format(postfix) - - _call_git("checkout", "-b", name, directory=directory) - - return name - - def get_commit_message(): default_message = """ # Please enter the commit message for your changes. Lines starting