* Remove unused code.

This commit is contained in:
caoyanyi
2022-07-06 14:25:28 +08:00
parent 17eda754f9
commit f7bb57b869
2 changed files with 1 additions and 15 deletions
-14
View File
@@ -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);
}
}
+1 -1
View File
@@ -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 '';
}
}
}