Remove unused code

This commit is contained in:
mkuba50 2017-10-14 15:31:30 +02:00
parent 73f8fad26c
commit 2f2e532dae
2 changed files with 4 additions and 6 deletions

View File

@ -83,20 +83,18 @@ function uupFetchUpd($arch = 'amd64', $ring = 'WIF', $flight = 'Active', $build
$updateFiles = preg_grep('/<Files>.*<\/Files>/', $updateMeta);
sort($updateFiles);
$updateTitle = preg_grep('/<Title>.*<\/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);

View File

@ -16,7 +16,7 @@ limitations under the License.
*/
function uupApiVersion() {
return '1.2.0';
return '1.2.1';
}
function uupApiPrintBrand() {