From 758fb42bd0cb2ebebdf6664829c4c61bc0165135 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 23 Sep 2014 14:39:19 -0400
Subject: [PATCH] Removed unused variables.

---
 module/VuFindSearch/src/VuFindSearch/Service.php | 2 --
 1 file changed, 2 deletions(-)

diff --git a/module/VuFindSearch/src/VuFindSearch/Service.php b/module/VuFindSearch/src/VuFindSearch/Service.php
index 2085c8e6b3d..905ec0b89a6 100644
--- a/module/VuFindSearch/src/VuFindSearch/Service.php
+++ b/module/VuFindSearch/src/VuFindSearch/Service.php
@@ -205,7 +205,6 @@ class Service
     public function random($backend, $query, $limit = 20, $params = null)
     {
         $params  = $params ?: new ParamBag();
-        $backendString = $backend;
         $context = __FUNCTION__;
         $args = compact('backend', 'query', 'limit', 'params', 'context');
         $backend = $this->resolve($backend, $args);
@@ -249,7 +248,6 @@ class Service
                 // Default case: retrieve n random records:
                 $response = false;
                 $retrievedIndexes = array();
-                $retrievedRecordIds = array();
                 for ($i = 0; $i < $limit; $i++) {
                     $nextIndex = rand(0, $total_records - 1);
                     while (in_array($nextIndex, $retrievedIndexes)) {
-- 
GitLab