diff --git a/apps/files_trashbin/js/trash.js b/apps/files_trashbin/js/trash.js
index b9088944fd46ee4eb26e12b674db09fd03530469..075dc6c31596608c4d06eb912e6ad4033996a00b 100644
--- a/apps/files_trashbin/js/trash.js
+++ b/apps/files_trashbin/js/trash.js
@@ -1,12 +1,3 @@
-// Override download path to files_sharing/public.php
-function fileDownloadPath(dir, file) {
-	var url = $('#downloadURL').val();
-	if (url.indexOf('&path=') != -1) {
-		url += '/'+file;
-	}
-	return url;
-}
-
 $(document).ready(function() {
 
 	if (typeof FileActions !== 'undefined') {