From 2c07af4842fa69d95070e2a9676c5d4306cf3d86 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 8 Oct 2014 13:41:53 +0200 Subject: remove dead proxy code from favicon fetcher --- utility/faviconfetcher.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'utility') diff --git a/utility/faviconfetcher.php b/utility/faviconfetcher.php index cadc90210..7ffdad9d7 100644 --- a/utility/faviconfetcher.php +++ b/utility/faviconfetcher.php @@ -19,16 +19,14 @@ use \ZendXml\Security; class FaviconFetcher { private $apiFactory; - private $config; /** * Inject a factory to build a simplepie file object. This is needed because * the file object contains logic in its constructor which makes it * impossible to inject and test */ - public function __construct(SimplePieAPIFactory $apiFactory, Config $config) { + public function __construct(SimplePieAPIFactory $apiFactory) { $this->apiFactory = $apiFactory; - $this->config = $config; } @@ -102,15 +100,8 @@ class FaviconFetcher { private function getFile($url) { - if(trim($this->config->getProxyHost()) === '') { - return $this->apiFactory->getFile($url, 10, 5, null, null, false, + return $this->apiFactory->getFile($url, 10, 5, null, null, false, null, null, null); - } else { - return $this->apiFactory->getFile($url, 10, 5, null, null, false, - $this->config->getProxyHost(), - $this->config->getProxyPort(), - $this->config->getProxyAuth()); - } } -- cgit v1.2.3