From 093bd6389b8fa291e7032218f748833ed73e7a21 Mon Sep 17 00:00:00 2001 From: liugang Date: Tue, 15 Aug 2023 16:51:00 +0800 Subject: [PATCH] - testcaseModel: remove unused method. --- module/testcase/model.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/module/testcase/model.php b/module/testcase/model.php index 528ad2a6e1..5a24eeea0d 100644 --- a/module/testcase/model.php +++ b/module/testcase/model.php @@ -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. *