Skip to content

Commit

Permalink
♻ REFACTOR: Removing unused code
Browse files Browse the repository at this point in the history
Remove no longer used code
  • Loading branch information
choldgraf authored Oct 29, 2020
2 parents a35b8b9 + 4a155e4 commit c7b073a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
9 changes: 0 additions & 9 deletions github_activity/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@ def _git_installed_check():
return True
except subprocess.CalledProcessError:
return False


def _valid_git_reference_check(git_ref):
cmd = ["git", "rev-parse", "--verify", git_ref]
try:
subprocess.check_call(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
return True
except subprocess.CalledProcessError:
return False
1 change: 0 additions & 1 deletion github_activity/github_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import urllib
from pathlib import Path

from .git import _valid_git_reference_check
from .graphql import GitHubGraphQlQuery
from .cache import _cache_data
import pandas as pd
Expand Down

0 comments on commit c7b073a

Please sign in to comment.