diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-02-20 17:10:09 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-02-20 17:11:31 +0400 |
commit | a0e790227e2fe9c33930bfe4259a7ddfb3de585f (patch) | |
tree | 3c94d7897d3c9c872c12f0e576d96aebf8e739f3 /lib/private/request.php | |
parent | 2955d9b48372c5ff8d364757cca94508441c1be1 (diff) |
remove unused functions - have been introduced with the old minimizer approach
Diffstat (limited to 'lib/private/request.php')
-rwxr-xr-x | lib/private/request.php | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/private/request.php b/lib/private/request.php index 0fd20b3cc1f..d0128f95d96 100755 --- a/lib/private/request.php +++ b/lib/private/request.php @@ -180,33 +180,6 @@ class OC_Request { } /** - * @brief Check if this is a no-cache request - * @return boolean true for no-cache - */ - static public function isNoCache() { - if (!isset($_SERVER['HTTP_CACHE_CONTROL'])) { - return false; - } - return $_SERVER['HTTP_CACHE_CONTROL'] == 'no-cache'; - } - - /** - * @brief Check if the requestor understands gzip - * @return false|string true for gzip encoding supported - */ - static public function acceptGZip() { - if (!isset($_SERVER['HTTP_ACCEPT_ENCODING'])) { - return false; - } - $HTTP_ACCEPT_ENCODING = $_SERVER["HTTP_ACCEPT_ENCODING"]; - if( strpos($HTTP_ACCEPT_ENCODING, 'x-gzip') !== false ) - return 'x-gzip'; - else if( strpos($HTTP_ACCEPT_ENCODING, 'gzip') !== false ) - return 'gzip'; - return false; - } - - /** * @brief Check if the requester sent along an mtime * @return false or an mtime */ |