From bd287c70070728ff001abacb9414758d3dcec7a4 Mon Sep 17 00:00:00 2001
From: Robert Lange <robert.lange@uni-leipzig.de>
Date: Tue, 27 Sep 2022 17:09:20 +0200
Subject: [PATCH] refs #16476 [finc] interlibrary loan link: remove
 accidentally and unnecessary added factory

---
 .../src/VuFind/Controller/ShortlinkController.php    | 12 ------------
 module/finc/config/module.config.php                 |  3 +--
 2 files changed, 1 insertion(+), 14 deletions(-)

diff --git a/module/VuFind/src/VuFind/Controller/ShortlinkController.php b/module/VuFind/src/VuFind/Controller/ShortlinkController.php
index 5a1034d8528..8b8a33eab23 100644
--- a/module/VuFind/src/VuFind/Controller/ShortlinkController.php
+++ b/module/VuFind/src/VuFind/Controller/ShortlinkController.php
@@ -56,16 +56,4 @@ class ShortlinkController extends AbstractBase
 
         $this->getResponse()->setStatusCode(404);
     }
-
-    /**
-     * Creates InterlibraryLoan
-     *
-     * @param ServiceManager $sm Service manager
-     * 
-     * @return InterlibraryLoan
-     */
-    public static function getInterlibraryLoan(ServiceManager $sm)
-    {
-        return new InterlibraryLoan($sm);
-    }
 }
diff --git a/module/finc/config/module.config.php b/module/finc/config/module.config.php
index d9b64893caa..428a1287c50 100644
--- a/module/finc/config/module.config.php
+++ b/module/finc/config/module.config.php
@@ -136,8 +136,7 @@ $config = [
             ],
             'recommend' => [
                 'factories' => [
-                    'finc\Recommend\EbscoResults' => \finc\Recommend\EbscoResultsFactory::class,
-                    'finc\Recommend\InterlibraryLoan' => 'finc\Recommend\Factory::getInterlibraryLoan',
+                    'finc\Recommend\EbscoResults' => \finc\Recommend\EbscoResultsFactory::class
                 ],
                 'aliases' => [
                     'ebscoresults' => 'finc\Recommend\EbscoResults',
-- 
GitLab