* Remove unused code.
This commit is contained in:
@@ -2896,18 +2896,4 @@ class gitlabModel extends model
|
||||
$html .= '</div>';
|
||||
return $html;
|
||||
}
|
||||
|
||||
/**
|
||||
* Download zip code.
|
||||
*
|
||||
* @param int $gitlabID
|
||||
* @param string $projectID
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function downloadCode($gitlabID = 0, $projectID = '')
|
||||
{
|
||||
$url = sprintf($this->getApiRoot($gitlabID), "/projects/" . $projectID . '/export');
|
||||
return $this->apiGet($url);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1308,7 +1308,7 @@ class repo extends control
|
||||
$repo = $this->repo->getRepoByID($repoID);
|
||||
if($repo->SCM == 'Gitlab')
|
||||
{
|
||||
return $this->loadModel('gitlab')->downloadCode($repo->gitlab, $repo->project);
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user