From ca907d2c034294ff0a379958f03b821f905bf489 Mon Sep 17 00:00:00 2001
From: Ghislain Loas <ghislo@sandbox.afi-sa.local>
Date: Wed, 17 Aug 2016 17:58:09 +0200
Subject: [PATCH] hotline #46627 remove unused actions

---
 .../opac/controllers/PanierController.php     | 35 -------------------
 1 file changed, 35 deletions(-)

diff --git a/application/modules/opac/controllers/PanierController.php b/application/modules/opac/controllers/PanierController.php
index afb13192de9..2ac186c0d4d 100644
--- a/application/modules/opac/controllers/PanierController.php
+++ b/application/modules/opac/controllers/PanierController.php
@@ -150,41 +150,6 @@ class PanierController extends ZendAfi_Controller_Action {
   }
 
 
-  public function selectPanierCourantAction() {
-    $this->view->titre = $this->view->_('Changer de panier');
-    $this->view->id_panier = ($panier = Class_PanierNotice::find($this->_getParam('id_panier')))
-      ? $panier->getId()
-      : '';
-
-    if(!$this->_request->isPost())
-      return;
-
-    if($new_current_panier = Class_PanierNotice::find($this->_request->getPost('id_new_panier')))
-      $this->_user
-        ->setPanierCourant($new_current_panier)
-        ->save();
-
-    $this->_redirectToReferer();
-  }
-
-
-  public function changePanierAjaxAction() {
-    $this->view->redirect = $this->view->absoluteUrl(['action' => 'add-record-ajax',
-                                                      'id_panier' => null]);
-    $this->view->id_panier = $this->_getParam('id_panier');
-    $this->view->titre = $this->view->_('Changer de panier');
-
-    if($this->_request->isPost()){
-      if($new_current_panier = Class_PanierNotice::find($this->_request->getPost('id_new_panier'))){
-        $this->_user
-          ->setPanierCourant($new_current_panier)
-          ->save();
-      }
-      return $this->_redirect($this->_request->getPost('redirect'));
-    }
-  }
-
-
   public function switchAction() {
     return $this->_switchAndRedirect('switch');
   }
-- 
GitLab