From f8dc43e517b6114dab8a75cd70a8f9a145424396 Mon Sep 17 00:00:00 2001 From: kremsy Date: Tue, 13 Oct 2015 19:13:27 +0200 Subject: [PATCH] filereader cleanup --- core/Files/AsynchronousFileReader.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/core/Files/AsynchronousFileReader.php b/core/Files/AsynchronousFileReader.php index 881c3998..41b9bd72 100644 --- a/core/Files/AsynchronousFileReader.php +++ b/core/Files/AsynchronousFileReader.php @@ -58,24 +58,6 @@ class AsynchronousFileReader { } } - - /** - * Create a new cURL Request for the given URL, DO NOT CALL MANUALLY! - * - * @param string $url - * @return Request - */ - public function newRequest($url) { - $request = new Request($url); - $request->getOptions()->set(CURLOPT_TIMEOUT, 60)->set(CURLOPT_HEADER, false)// don't display response header - ->set(CURLOPT_CRLF, true)// linux line feed - ->set(CURLOPT_ENCODING, '')// accept encoding - ->set(CURLOPT_USERAGENT, 'ManiaControl v' . ManiaControl::VERSION)// user-agent - ->set(CURLOPT_RETURNTRANSFER, true); // return instead of output content - return $request; - } - - /** * Load a Remote File *