drop depricated is_readable and is_writable

This commit is contained in:
Robin Appelman 2012-10-21 00:13:16 +02:00
parent cfa036eaa9
commit 1901ac8b17
4 changed files with 1 additions and 36 deletions

View File

@ -178,7 +178,7 @@ class OC_Files {
$filename=$dir.'/'.$files;
}
@ob_end_clean();
if($zip or \OC\Files\Filesystem::is_readable($filename)) {
if($zip or \OC\Files\Filesystem::isReadable($filename)) {
header('Content-Disposition: attachment; filename="'.basename($filename).'"');
header('Content-Transfer-Encoding: binary');
OC_Response::disableCaching();

View File

@ -440,20 +440,6 @@ class Filesystem {
return self::$defaultInstance->readfile($path);
}
/**
* @deprecated Replaced by isReadable() as part of CRUDS
*/
static public function is_readable($path) {
return self::$defaultInstance->isReadable($path);
}
/**
* @deprecated Replaced by isCreatable(), isUpdatable(), isDeletable() as part of CRUDS
*/
static public function is_writable($path) {
return self::$defaultInstance->is_writable($path);
}
static public function isCreatable($path) {
return self::$defaultInstance->isCreatable($path);
}

View File

@ -195,20 +195,6 @@ class View {
return false;
}
/**
* @deprecated Replaced by isReadable() as part of CRUDS
*/
public function is_readable($path) {
return $this->basicOperation('isReadable', $path);
}
/**
* @deprecated Replaced by isCreatable(), isUpdatable(), isDeletable() as part of CRUDS
*/
public function is_writable($path) {
return $this->basicOperation('isUpdatable', $path);
}
public function isCreatable($path) {
return $this->basicOperation('isCreatable', $path);
}

View File

@ -257,13 +257,6 @@ class OC_Filesystem {
return \OC\Files\Filesystem::isReadable($path);
}
/**
* @deprecated Replaced by isCreatable(), isUpdatable(), isDeletable() as part of CRUDS
*/
static public function is_writable($path) {
return \OC\Files\Filesystem::is_writable($path);
}
/**
* @deprecated OC_Filesystem is replaced by \OC\Files\Filesystem
*/