From 226484ba221a368ec033fecce074a8da4ce48ba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre=20Mazi=C3=A8re?= Date: Fri, 8 Jul 2016 19:09:37 +0200 Subject: [PATCH] core: remove useless HttpCachingBridgeAbstract::download_remote() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pierre Mazière --- lib/Bridge.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index f8592f3..b2010ec 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -223,23 +223,6 @@ abstract class HttpCachingBridgeAbstract extends BridgeAbstract { } } - public function download_remote($url , $save_path) { - $f = fopen( $save_path , 'w+'); - if($f) { - $handle = fopen($url , "rb"); - if($handle) { - while (!feof($handle)) { - $contents = fread($handle, 8192); - if($contents) { - fwrite($f , $contents); - } - } - fclose($handle); - } - fclose($f); - } - } - public function remove_from_cache($url) { $simplified_url = str_replace(["http://", "https://", "?", "&", "="], ["", "", "/", "/", "/"], $url); // TODO build this from the variable given to Cache