From a92445d936145672e0c61ce0b16c35a3e90f2ed6 Mon Sep 17 00:00:00 2001 From: Michal Kleiner Date: Thu, 13 Feb 2020 23:32:01 +1300 Subject: [PATCH] Remove unused helper class --- src/Helpers/ExtensionHelper.php | 62 --------------------------------- 1 file changed, 62 deletions(-) delete mode 100644 src/Helpers/ExtensionHelper.php diff --git a/src/Helpers/ExtensionHelper.php b/src/Helpers/ExtensionHelper.php deleted file mode 100644 index f6a756b..0000000 --- a/src/Helpers/ExtensionHelper.php +++ /dev/null @@ -1,62 +0,0 @@ - $doClassName) { - if (array_key_exists($doClassKey, $excluded)) { - continue; - } - - if ($excludeTestOnly) { - if (is_a($doClassName, TestOnly::class, true)) { - unset($doClasses[$doClassKey]); - $excluded[$doClassKey] = $doClassName; - if (!$includeSubClass) { - foreach (ClassInfo::subclassesFor($doClassName, false) as $subClassKey => $subClassName) { - if (isset($doClasses[$subClassKey])) { - unset($doClasses[$subClassName]); - $excluded[$subClassKey] = $subClassName; - } - } - } - - continue; - } - } - - if (!self::has_extension($doClassName, $extensionName)) { - unset($doClasses[$doClassKey]); - } else { //has applied the extension - if (!$includeSubClass) { - foreach (ClassInfo::subclassesFor($doClassName, false) as $subClassKey => $subClassName) { - if (isset($doClasses[$subClassKey])) { - unset($doClasses[$subClassKey]); - $excluded[$subClassKey] = $subClassName; - } - } - } - } - } - - return $doClasses; - } -}