- testcaseModel: remove unused method.

This commit is contained in:
liugang
2023-08-14 09:59:34 +08:00
parent fd4c793cfe
commit 5209821db1
-26
View File
@@ -3334,32 +3334,6 @@ class testcaseModel extends model
->beginIF($rawModule == 'project' and $rawMethod == 'testcase' and $type === 'child')->andWhere('id')->in($objectIdList)->fi();
}
/**
* Search cases has scene.
*
* @param int $viewID
* @access public
* @return string
*/
public function getParents($viewID)
{
if($viewID == 0) return '/';
$path = $this->dao->select('path')->from(VIEW_SCENECASE)->where('id')->eq((int)$viewID)->fetch('path');
$path = trim($path, ',');
if(!$path) return '/';
$pathArr = explode(',', $path);
$scenePath = "";
foreach ($pathArr as $vid)
{
$title = $this->dao->select('title')->from(VIEW_SCENECASE)->where('id')->eq((int)$vid)->fetch('title');
$scenePath .= '&nbsp;<i class="icon-angle-right"></i>&nbsp;'.$title;
}
return substr($scenePath,34);
}
/**
* Get scene list include sub scenes and cases.
*