From 02ea553f43234ba6ecadec2028d00b7b6c88363a Mon Sep 17 00:00:00 2001
From: drigato <denise.rigato@sourcefabric.org>
Date: Thu, 31 Jul 2014 23:21:39 -0400
Subject: [PATCH] Removed media api delete-success callback because it's no
 longer in use

---
 .../rest/controllers/MediaController.php      | 25 -------------------
 1 file changed, 25 deletions(-)

diff --git a/airtime_mvc/application/modules/rest/controllers/MediaController.php b/airtime_mvc/application/modules/rest/controllers/MediaController.php
index 0408ff04e..ca334f7bf 100644
--- a/airtime_mvc/application/modules/rest/controllers/MediaController.php
+++ b/airtime_mvc/application/modules/rest/controllers/MediaController.php
@@ -298,31 +298,6 @@ class Rest_MediaController extends Zend_Rest_Controller
         }
     }
 
-    public function deleteSuccessAction()
-    {
-        if (!$this->verifyAuth(true, true))
-        {
-            return;
-        }
-
-        $id = $this->getId();
-        if (!$id) {
-            return;
-        }
-        
-        $requestData = json_decode($this->getRequest()->getRawBody(), true);
-        
-        if ($requestData["import_status"] == 1) {
-            $con = Propel::getConnection();
-            $storedFile = new Application_Model_StoredFile(CcFilesQuery::create()->findPk($id), $con);
-            
-            $storedFile->doFileDeletionCleanup($requestData["filesize"]);
-            
-            //refresh library table to remove the deleted file from it
-            //$this->view->headScript()->appendScript("oTable.fnStandingRedraw();");
-        }
-    }
-
     private function getId()
     {
         if (!$id = $this->_getParam('id', false)) {