diff --git a/apps/files_sharing/sharedstorage.php b/apps/files_sharing/sharedstorage.php
index 2f68b481ebb87b034f94c6d2b959cafa730f1e52..e3519306e025d6cdce29229c49d30d3dfe60bec8 100644
--- a/apps/files_sharing/sharedstorage.php
+++ b/apps/files_sharing/sharedstorage.php
@@ -346,15 +346,7 @@ class OC_Filestorage_Shared extends OC_Filestorage_Common {
 		}
 		return false;
 	}
-	
-	public function toTmpFile($path) {
-		if ($source = $this->getSourcePath($path)) {
-			$storage = OC_Filesystem::getStorage($source);
-			return $storage->toTmpFile($this->getInternalPath($source));
-		}
-		return false;
-	}
-	
+
 	public function getMimeType($path) {
 		if ($path == '' || $path == '/') {
 			return 'httpd/unix-directory';