diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-02-18 16:32:49 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-03-25 17:47:24 +0100 |
commit | 6afd496d9bf64cdc911bab6393d24240db3df04d (patch) | |
tree | dad435a4bef4af6f9780c5c707d3df345463ff73 | |
parent | b6026625781b2fda8ee1b23c3984be4a064adccc (diff) | |
download | nextcloud-server-6afd496d9bf64cdc911bab6393d24240db3df04d.tar.gz nextcloud-server-6afd496d9bf64cdc911bab6393d24240db3df04d.zip |
remove prepFileTarget() seems that it is no longer in use
-rw-r--r-- | lib/private/share/share.php | 18 | ||||
-rw-r--r-- | lib/public/share.php | 9 |
2 files changed, 0 insertions, 27 deletions
diff --git a/lib/private/share/share.php b/lib/private/share/share.php index ef0ed257c5d..c819f6bf54c 100644 --- a/lib/private/share/share.php +++ b/lib/private/share/share.php @@ -90,24 +90,6 @@ class Share extends \OC\Share\Constants { } /** - * 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 * @param $user owner of the file diff --git a/lib/public/share.php b/lib/public/share.php index fcc61b2f4fd..a08134b3837 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -62,15 +62,6 @@ class Share extends \OC\Share\Constants { } /** - * 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 * @param $user owner of the file |