Skip to content

Commit

Permalink
Merge pull request #12 from malavsky/remove-unused-method
Browse files Browse the repository at this point in the history
Remove getStatusData from JiraWebHook
  • Loading branch information
aivus committed Aug 10, 2015
2 parents 4be0b93 + 7b6ae42 commit db66b63
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions services/JiraWebHook.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,6 @@ private function getCommentData($jiraData)
];
}

/**
* @todo This method is not used anymore
* @param $jiraData
* @return array
*/
private function getStatusData($jiraData)
{
return [
'name' => $jiraData->issue->fields->status->name,
'icon' => $jiraData->issue->fields->status->iconUrl
];
}

private function getUserData($jiraData)
{
return [
Expand All @@ -131,4 +118,4 @@ private function getLink($url, $issueNumber)
$port = isset($parsedUrl['port']) ? ':' . $parsedUrl['port'] : '';
return $parsedUrl['scheme'] . '://' . $parsedUrl['host'] . $port . '/browse/' . $issueNumber;
}
}
}

0 comments on commit db66b63

Please sign in to comment.