From 2f2e532dae7cf2b07497682dd9dc21d37c58d350 Mon Sep 17 00:00:00 2001 From: mkuba50 Date: Sat, 14 Oct 2017 15:31:30 +0200 Subject: [PATCH] Remove unused code --- fetchupd.php | 8 +++----- shared/main.php | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/fetchupd.php b/fetchupd.php index 2517a3a..84cd150 100644 --- a/fetchupd.php +++ b/fetchupd.php @@ -83,20 +83,18 @@ function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build $updateFiles = preg_grep('/.*<\/Files>/', $updateMeta); sort($updateFiles); - $updateTitle = preg_grep('/.*<\/Title>/', $updateMeta); - sort($updateTitle); - preg_match('/<Files>.*<\/Files>/', $updateFiles[0], $fileList); if(empty($fileList[0])) { consoleLogger('An error has occurred'); return array('error' => 'EMPTY_FILELIST'); } - preg_match('/<FlightMetadata>.*?<Relationships>/', $out, $out2); - preg_match('/Version\=".*?"/', $updateInfo[0], $foundBuild); $foundBuild = preg_replace('/Version="10\.0\.|"/', '', $foundBuild[0]); + $updateTitle = preg_grep('/<Title>.*<\/Title>/', $updateMeta); + sort($updateTitle); + preg_match('/<Title>.*?<\/Title>/i', $updateTitle[0], $updateTitle); $updateTitle = preg_replace('/<Title>|<\/Title>/i', '', $updateTitle); sort($updateTitle); diff --git a/shared/main.php b/shared/main.php index d513cc5..c162661 100644 --- a/shared/main.php +++ b/shared/main.php @@ -16,7 +16,7 @@ limitations under the License. */ function uupApiVersion() { - return '1.2.0'; + return '1.2.1'; } function uupApiPrintBrand() {