diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 094fb81d78b89d25bc350a804353cfb1845d48d5..016aef05a96b2e9598dd6d3e2de6fabddf2fc47a 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -506,10 +506,5 @@ var folderDropOptions = {
 	tolerance: 'pointer'
 };
 
-// override core's fileDownloadPath (legacy)
-function fileDownloadPath(dir, file) {
-	return OCA.Files.Files.getDownloadUrl(file, dir);
-}
-
 // for backward compatibility
 window.Files = OCA.Files.Files;
diff --git a/core/js/js.js b/core/js/js.js
index bc6c0781754b37ba154f71e91b2733302ab60b87..edde0ff390c940b79dc75aaa65aee82cbed8d2f6 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -46,17 +46,6 @@ function escapeHTML(s) {
 	return s.toString().split('&').join('&amp;').split('<').join('&lt;').split('>').join('&gt;').split('"').join('&quot;').split('\'').join('&#039;');
 }
 
-/**
-* Get the path to download a file
-* @param {string} file The filename
-* @param {string} dir The directory the file is in - e.g. $('#dir').val()
-* @return {string} Path to download the file
-* @deprecated use Files.getDownloadURL() instead
-*/
-function fileDownloadPath(dir, file) {
-	return OC.filePath('files', 'ajax', 'download.php')+'?files='+encodeURIComponent(file)+'&dir='+encodeURIComponent(dir);
-}
-
 /** @namespace */
 var OCP = {},
 	OC = {