diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-10-08 18:04:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-08 18:04:08 +0200 |
commit | 3330600dc5a80a4bbbabbbeafa09523265e2dcd3 (patch) | |
tree | 5291a2b8c880d4c4e7bd11a33192e07687a1ddf6 /core/js | |
parent | 8acd50397585dd6a3303ce766b0c6a85c546601e (diff) | |
parent | 576e44f89071929055a2d8614521fb314a8f53f9 (diff) | |
download | nextcloud-server-3330600dc5a80a4bbbabbbeafa09523265e2dcd3.tar.gz nextcloud-server-3330600dc5a80a4bbbabbbeafa09523265e2dcd3.zip |
Merge pull request #11682 from nextcloud/refactor/remove-deprecated-unused-fileDownloadPath
Remove deprecated and unused fileDownloadPath
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/js.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/core/js/js.js b/core/js/js.js index bc6c0781754..edde0ff390c 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -46,17 +46,6 @@ function escapeHTML(s) { return s.toString().split('&').join('&').split('<').join('<').split('>').join('>').split('"').join('"').split('\'').join('''); } -/** -* 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 = { |