Skip to content

Commit

Permalink
Remove unused methods in git_repo library
Browse files Browse the repository at this point in the history
  • Loading branch information
allenporter committed Jul 7, 2023
1 parent 16092b9 commit 18c45c5
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions flux_local/git_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,20 +118,6 @@ def from_str(self, value: str) -> "Source":
return Source(name=name, root=Path(root), namespace=namespace)


def has_source_name(name: str) -> Callable[[Source], bool]:
"""Return a source root if the source exists."""

def predicate(source: Source) -> bool:
return source.name == name

return predicate


def source_root(source: Source) -> Path:
"""Return the sources root path."""
return source.root


@cache
def git_repo(path: Path | None = None) -> git.repo.Repo:
"""Return the local git repo path."""
Expand Down

0 comments on commit 18c45c5

Please sign in to comment.