]> source.dussan.org Git - nextcloud-server.git/commitdiff
remove duplicate method
authorjfd <jfd@lance>
Sat, 25 Aug 2012 00:13:32 +0000 (02:13 +0200)
committerjfd <jfd@lance>
Sat, 25 Aug 2012 00:13:32 +0000 (02:13 +0200)
lib/filesystem.php

index 0a8e698215138af95fd4ad8450f2d22fe02d6516..82fbf11afdf9fe450db6013e819856df6d1d6fa1 100644 (file)
@@ -358,20 +358,6 @@ class OC_Filesystem{
                return $newpath;
        }
        
-       /**
-       * return path to file which reflects one visible in browser
-       * @param string path
-       * @return string
-       */
-       static public function getLocalPath($path) {
-               $datadir = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser().'/files';
-               $newpath = $path;
-               if (strncmp($newpath, $datadir, strlen($datadir)) == 0) {
-                       $newpath = substr($path, strlen($datadir));
-               }
-               return $newpath;
-       }
-       
        /**
         * check if the requested path is valid
         * @param string path