From 5209821db10851d7f08df19a0bde213ecbc920cf Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 14 Aug 2023 09:59:34 +0800 Subject: [PATCH] - testcaseModel: remove unused method. --- module/testcase/model.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/module/testcase/model.php b/module/testcase/model.php index bf030339a6..e82e4b709b 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -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 .= '  '.$title; - } - - return substr($scenePath,34); - } - /** * Get scene list include sub scenes and cases. *