Skip to content

Commit

Permalink
style fixes for public response api
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Ehrke committed Sep 8, 2012
1 parent a16565a commit 439ede2
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/public/response.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
* This class provides convinient functions to send the correct http response headers
*/
class Response {


/**
* @brief Enable response caching by sending correct HTTP headers
* @param $cache_time time to cache the response
Expand All @@ -47,7 +45,6 @@ static public function enableCaching( $cache_time = null ) {
return(\OC_Response::enableCaching( $cache_time ));
}


/**
* Checks and set Last-Modified header, when the request matches sends a
* 'not modified' response
Expand All @@ -57,7 +54,6 @@ static public function setLastModifiedHeader( $lastModified ) {
return(\OC_Response::setLastModifiedHeader( $lastModified ));
}


/**
* @brief disable browser caching
* @see enableCaching with cache_time = 0
Expand All @@ -66,7 +62,6 @@ static public function disableCaching() {
return(\OC_Response::disableCaching());
}


/**
* Checks and set ETag header, when the request matches sends a
* 'not modified' response
Expand All @@ -76,7 +71,6 @@ static public function setETagHeader( $etag ) {
return(\OC_Response::setETagHeader( $etag ));
}


/**
* @brief Send file as response, checking and setting caching headers
* @param $filepath of file to send
Expand All @@ -102,6 +96,4 @@ static public function setExpiresHeader( $expires ) {
static public function redirect( $location ) {
return(\OC_Response::redirect( $location ));
}


}
}

0 comments on commit 439ede2

Please sign in to comment.