Skip to content
Permalink
Browse files

Remove dead code

  • Loading branch information...
fthomas committed Sep 11, 2019
1 parent 96c9298 commit 5107380ad9c167649914df9a1d5930a01d11f0c9
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 5107380

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