From b8832a7e02752aa096014184c214fb5174f779db Mon Sep 17 00:00:00 2001 From: cmadjar Date: Fri, 25 Oct 2019 10:21:04 -0400 Subject: [PATCH] [imaging_uploader] Removed unused variables from imaging_uploader.class.inc (#5307) Clean up the imaging_uploader.class.inc file by removing all declaration of variables that are never used. --- .../imaging_uploader/php/imaging_uploader.class.inc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/modules/imaging_uploader/php/imaging_uploader.class.inc b/modules/imaging_uploader/php/imaging_uploader.class.inc index 49027109bc8..714fab64d46 100644 --- a/modules/imaging_uploader/php/imaging_uploader.class.inc +++ b/modules/imaging_uploader/php/imaging_uploader.class.inc @@ -230,7 +230,6 @@ class Imaging_Uploader extends \NDB_Menu_Filter_Form //get the stored-file path $file = new \File_Upload; $config = \NDB_Config::singleton(); - $paths = $config->getSetting('paths'); $file->setOverwriteMode("overwrite"); $file->fileMove = false; //pass the existing form ($form) by reference to File_Upload, @@ -250,7 +249,6 @@ class Imaging_Uploader extends \NDB_Menu_Filter_Form "mriFile", $this ); - $user = \User::singleton(); //set the the IDs to the handler functions. $file->setHandlerArgs(array("values" => $values)); //proccesses them (including verify, move, and import steps) @@ -280,7 +278,6 @@ class Imaging_Uploader extends \NDB_Menu_Filter_Form { //make sure the file-name is valid $temp_file = $file->fileInfo['tmp_name']; - $temp_dir = $this->tempdir(); $db = \Database::singleton(); // creates associative array to store error messages for each form element $errors = array( @@ -293,14 +290,7 @@ class Imaging_Uploader extends \NDB_Menu_Filter_Form // creates empty string variable to store error message for wrong file name $file_name_error = ""; $config = \NDB_Config::singleton(); - $dicom_archive_settings = $config->getSetting( - 'imaging_modules' - ); - $corect_name = $dicom_archive_settings['patientNameRegex']; - $header_patient_name = array(); - $file_name = $file->fileInfo['name']; - $file_path = $temp_dir. "/". $file_name; - $isPhantom = $args['values']['IsPhantom']; + $file_name = $file->fileInfo['name']; /////////////////////////////////////////////////////////////////////// /////////Validate the advanced Options only if it's not a Phantom////// /////////////////////////////////////////////////////////////////////// @@ -485,7 +475,6 @@ class Imaging_Uploader extends \NDB_Menu_Filter_Form */ function importFile($file, $args) { - $feedbacks = array(); $db = \Database::singleton(); $pname = ''; $IsPhantom = $args['values']['IsPhantom'];