Skip to content
Permalink
Browse files

Merge pull request #935 from fthomas/topic/rm-dead-code

Remove dead code
  • Loading branch information...
fthomas committed Sep 11, 2019
2 parents 96c9298 + 5107380 commit 48badc8d4ab4fb4ac8aacefa2549935ce97ee1e7
Showing with 0 additions and 8 deletions.
  1. +0 −8 modules/core/src/main/scala/org/scalasteward/core/git/GitAlg.scala
@@ -52,8 +52,6 @@ trait GitAlg[F[_]] {

def push(repo: Repo, branch: Branch): F[Unit]

def remoteBranchExists(repo: Repo, branch: Branch): F[Boolean]

def removeClone(repo: Repo): F[Unit]

def setAuthor(repo: Repo, author: Author): F[Unit]
@@ -156,12 +154,6 @@ object GitAlg {
_ <- exec(Nel.of("push", "--force", "--set-upstream", "origin", branch.name), repoDir)
} yield ()

override def remoteBranchExists(repo: Repo, branch: Branch): F[Boolean] =
for {
repoDir <- workspaceAlg.repoDir(repo)
branches <- exec(Nel.of("branch", "-r"), repoDir)
} yield branches.exists(_.endsWith(branch.name))

override def removeClone(repo: Repo): F[Unit] =
workspaceAlg.repoDir(repo).flatMap(fileAlg.deleteForce)

0 comments on commit 48badc8

Please sign in to comment.
You can’t perform that action at this time.