From 602c17ab6ff6e7e7a5eb98c333da8262182fe123 Mon Sep 17 00:00:00 2001 From: Shambhu Kumar Date: Mon, 30 Oct 2023 18:15:10 +0530 Subject: [PATCH] Removed unused file and comment var dir --- src/Filesystem/MountList.php | 45 ------------------------------------ 1 file changed, 45 deletions(-) delete mode 100644 src/Filesystem/MountList.php diff --git a/src/Filesystem/MountList.php b/src/Filesystem/MountList.php deleted file mode 100644 index 08da57901e..0000000000 --- a/src/Filesystem/MountList.php +++ /dev/null @@ -1,45 +0,0 @@ -environment = $environment; - $this->directory = $directory; - } - - /** - * @return string[] - */ - public function getMountedDirectories(): array - { - $appData = $this->environment->getApplication(); - - $mountsFull = $appData['mounts']; - - // Remove the metadata and only return the paths. - $mountsSlash = array_keys($mountsFull); - - // Change the mount path strings with a leading slash into absolute path strings. - return array_map(function ($mount) { - return $this->directory->getMagentoRoot() . $mount; - }, $mountsSlash); - } -}