remove prepFileTarget() seems that it is no longer in use
This commit is contained in:
parent
b602662578
commit
6afd496d9b
|
@ -89,24 +89,6 @@ class Share extends \OC\Share\Constants {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare a path to be passed to DB as file_target
|
||||
* @param string $path path
|
||||
* @return string Prepared path
|
||||
*/
|
||||
public static function prepFileTarget( $path ) {
|
||||
|
||||
// Paths in DB are stored with leading slashes, so add one if necessary
|
||||
if ( substr( $path, 0, 1 ) !== '/' ) {
|
||||
|
||||
$path = '/' . $path;
|
||||
|
||||
}
|
||||
|
||||
return $path;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Find which users can access a shared item
|
||||
* @param $path to the file
|
||||
|
|
|
@ -61,15 +61,6 @@ class Share extends \OC\Share\Constants {
|
|||
return \OC\Share\Share::isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare a path to be passed to DB as file_target
|
||||
* @param string $path path
|
||||
* @return string Prepared path
|
||||
*/
|
||||
public static function prepFileTarget($path) {
|
||||
return \OC\Share\Share::prepFileTarget($path);
|
||||
}
|
||||
|
||||
/**
|
||||
* Find which users can access a shared item
|
||||
* @param $path to the file
|
||||
|
|
Loading…
Reference in New Issue