From 36b344a9107f07a987e34d4f5f7f7423b719d1d0 Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Thu, 23 Aug 2012 11:48:34 -0400 Subject: [PATCH] cc-3936: remove unneeded garbage. --- .../application/controllers/ApiController.php | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/airtime_mvc/application/controllers/ApiController.php b/airtime_mvc/application/controllers/ApiController.php index b34cd2c9c..789179399 100644 --- a/airtime_mvc/application/controllers/ApiController.php +++ b/airtime_mvc/application/controllers/ApiController.php @@ -463,17 +463,10 @@ class ApiController extends Zend_Controller_Action $this->view->watched_dirs = $watchedDirsPath; } - public function dispatchMetadata($md, $mode, $dry_run=false) + public function dispatchMetadata($md, $mode) { // Replace this compound result in a hash with proper error handling later on $return_hash = array(); - if ( $dry_run ) { // for debugging we return garbage not to screw around with the db - return array( - 'md' => $md, - 'mode' => $mode, - 'fileid' => 123456 - ); - } Application_Model_Preference::SetImportTimestamp(); Logging::info("--->Mode: $mode || file: {$md['MDATA_KEY_FILEPATH']} "); Logging::info( $md ); @@ -586,8 +579,7 @@ class ApiController extends Zend_Controller_Action // Removing 'mode' key from $info_json might not be necessary... $mode = $info_json['mode']; unset( $info_json['mode'] ); - $response = $this->dispatchMetadata($info_json, $mode, - $dry_run=$dry); + $response = $this->dispatchMetadata($info_json, $mode); // We tack on the 'key' back to every request in case the would like to associate // his requests with particular responses $response['key'] = $k;