Skip to content

Commit 79d5294

Browse files
committed
Removing unused code
1 parent 4143eb2 commit 79d5294

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

src/AppBundle/Issues/GitHub/GitHubStatusApi.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,6 @@ public function setIssueStatus($issueNumber, $newStatus, Repository $repository)
6868
}
6969
}
7070

71-
/**
72-
* Replaces the existing issue labels (if any) with the given array of
73-
* new labels. Use an empty array to remove all the existing labels.
74-
*
75-
* @param int $issueNumber The GitHub issue number
76-
* @param array $newLabels
77-
*/
78-
public function setIssueLabels($issueNumber, array $newLabels, Repository $repository)
79-
{
80-
foreach ($newLabels as $label) {
81-
$this->labelsApi->addIssueLabel($issueNumber, $label, $repository);
82-
}
83-
}
84-
8571
public function getIssueStatus($issueNumber, Repository $repository)
8672
{
8773
$currentLabels = $this->labelsApi->getIssueLabels($issueNumber, $repository);

src/AppBundle/Issues/NullStatusApi.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,4 @@ public function setIssueStatus($issueNumber, $newStatus, Repository $repository)
1717
{
1818

1919
}
20-
21-
public function setIssueLabels($issueNumber, array $newLabels, Repository $repository)
22-
{
23-
}
2420
}

src/AppBundle/Issues/StatusApi.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,4 @@ interface StatusApi
1414
public function getIssueStatus($issueNumber, Repository $repository);
1515

1616
public function setIssueStatus($issueNumber, $newStatus, Repository $repository);
17-
18-
public function setIssueLabels($issueNumber, array $newLabels, Repository $repository);
1917
}

0 commit comments

Comments
 (0)