From 374c114ae877238edf230ffcb4ec2cd329a8dd2b Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Mon, 12 Feb 2018 12:16:21 -0500
Subject: [PATCH] Remove unused code.

---
 .../src/VuFind/Controller/AjaxController.php  | 28 -------------------
 .../templates/ajax/export-favorites.phtml     | 10 -------
 2 files changed, 38 deletions(-)
 delete mode 100644 themes/bootstrap3/templates/ajax/export-favorites.phtml

diff --git a/module/VuFind/src/VuFind/Controller/AjaxController.php b/module/VuFind/src/VuFind/Controller/AjaxController.php
index 555c380dcd8..d29cc1d25f2 100644
--- a/module/VuFind/src/VuFind/Controller/AjaxController.php
+++ b/module/VuFind/src/VuFind/Controller/AjaxController.php
@@ -1121,34 +1121,6 @@ class AjaxController extends AbstractBase
         return $this->output($html, self::STATUS_OK);
     }
 
-    /**
-     * Process an export request
-     *
-     * @return \Zend\Http\Response
-     */
-    protected function exportFavoritesAjax()
-    {
-        $format = $this->params()->fromPost('format');
-        $export = $this->serviceLocator->get('VuFind\Export');
-        $url = $export->getBulkUrl(
-            $this->getViewRenderer(), $format,
-            $this->params()->fromPost('ids', [])
-        );
-        $html = $this->getViewRenderer()->render(
-            'ajax/export-favorites.phtml',
-            ['url' => $url, 'format' => $format]
-        );
-        return $this->output(
-            [
-                'result' => $this->translate('Done'),
-                'result_additional' => $html,
-                'needs_redirect' => $export->needsRedirect($format),
-                'export_type' => $export->getBulkExportType($format),
-                'result_url' => $url
-            ], self::STATUS_OK
-        );
-    }
-
     /**
      * Fetch Links from resolver given an OpenURL and format as HTML
      * and output the HTML content in JSON object.
diff --git a/themes/bootstrap3/templates/ajax/export-favorites.phtml b/themes/bootstrap3/templates/ajax/export-favorites.phtml
deleted file mode 100644
index 8caa049b958..00000000000
--- a/themes/bootstrap3/templates/ajax/export-favorites.phtml
+++ /dev/null
@@ -1,10 +0,0 @@
-<div class="alert alert-info">
-  <div class="text-center">
-    <?=$this->transEsc('export_success'); ?>&nbsp;&mdash;&nbsp;
-    <a class="btn btn-primary" href="<?=$this->escapeHtmlAttr($this->url)?>"<?=$this->export()->needsRedirect($this->format) ? ' target="_blank"' : ''?>><?=
-        $this->export()->needsRedirect($this->format)
-            ? $this->transEsc('export_redirect', ['%%service%%' => $this->translate($this->export()->getLabelForFormat($this->format))])
-            : $this->transEsc('export_download')
-      ?></a>
-  </div>
-</div>
-- 
GitLab