- testcaseModel: remove unused method.

This commit is contained in:
liugang
2023-08-15 16:51:00 +08:00
parent 487fbaeda4
commit 093bd6389b
-15
View File
@@ -1150,21 +1150,6 @@ class testcaseModel extends model
}
}
/**
* Filter id list: remove prefix.
*
* @param array $idList
* @param string $type case|scene
* @access public
* @return array
*/
public function filterIdList($idList, $type = 'case')
{
if($type == 'case') return array_filter(array_map(function($id){return strpos($id, 'case_') !== false ? str_replace('case_', '', $id) : (int)$id;}, $idList));
if($type == 'scene') return array_filter(array_map(function($id){return strpos($id, 'scene_') !== false ? str_replace('scene_', '', $id) : (int)$id;}, $idList));
return $idList;
}
/**
* Batch update testcases.
*