Skip to content

Commit

Permalink
[imaging_uploader] Removed unused variables from imaging_uploader.cla…
Browse files Browse the repository at this point in the history
…ss.inc (#5307)

Clean up the imaging_uploader.class.inc file by removing all declaration of variables that are never used.
  • Loading branch information
cmadjar authored and driusan committed Oct 25, 2019
1 parent dad381e commit b8832a7
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions modules/imaging_uploader/php/imaging_uploader.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
Expand Down Expand Up @@ -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(
Expand All @@ -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//////
///////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -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'];
Expand Down

0 comments on commit b8832a7

Please sign in to comment.