From fa186d194488d3972fb787fb3b00f22d948535cd Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Mon, 13 May 2013 15:41:51 +0200 Subject: [PATCH] Remove Connector::resubmit() et al * VuFindSearch/Backend/Solr/Connector.php (resubmit, getLastQueryParameters, $lastQuery): Removed. (query): Remove usage of $lastQuery. --- .../VuFindSearch/Backend/Solr/Connector.php | 36 ------------------- 1 file changed, 36 deletions(-) diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Connector.php index fb89e0119ce..a704209fdfc 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/Solr/Connector.php @@ -125,15 +125,6 @@ class Connector */ protected $appends; - /** - * Last query. - * - * @see self::resubmit() - * - * @var array - */ - protected $lastQuery; - /** * HTTP client adapter. * @@ -384,16 +375,6 @@ class Connector $this->logger = $logger; } - /** - * Return parameters of the last request. - * - * @return ParamBag - */ - public function getLastQueryParameters() - { - return $this->lastQuery['parameters']; - } - /** * Set the HTTP proxy service. * @@ -493,20 +474,6 @@ class Connector return new ParamBag($params); } - /** - * Repeat the last request with potentially modified parameters. - * - * @param ParamBag $params Request parameters - * - * @return string - */ - public function resubmit(ParamBag $params) - { - $last = $this->lastQuery; - $params = $this->prepare($params); - return $this->query($last['handler'], $params, $last['method']); - } - /** * Send query to SOLR and return response body. * @@ -539,9 +506,6 @@ class Connector if ($this->logger) { $this->logger->debug(sprintf('Query %s', $paramString)); } - $this->lastQuery = array( - 'parameters' => $params, 'handler' => $handler, 'method' => $method - ); return $this->send($client); } -- GitLab