- Remove project model function linkedRepoPairs.

This commit is contained in:
chaideqing
2023-05-09 20:12:43 +08:00
parent 3afd652ee6
commit 96f7544e3f
-24
View File
@@ -2973,30 +2973,6 @@ class projectModel extends model
return $menu;
}
/**
* Get linked repo pairs by project id.
*
* @param int $projectID
* @access public
* @return array
*/
public function linkedRepoPairs($projectID)
{
$repos = $this->dao->select('*')->from(TABLE_REPO)
->where('deleted')->eq(0)
->andWhere("CONCAT(',', projects, ',')")->like("%,$projectID,%")
->fetchAll();
$repoPairs = array();
foreach($repos as $repo)
{
$scm = $repo->SCM == 'Subversion' ? 'svn' : strtolower($repo->SCM);
$repoPairs[$repo->id] = "[{$scm}] " . $repo->name;
}
return $repoPairs;
}
/**
* Update plans.
*