diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-08 16:46:36 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-08 16:46:36 +0200 |
commit | 576e44f89071929055a2d8614521fb314a8f53f9 (patch) | |
tree | 520618e1b0f88b244875dfd3c2c2b20daf5ad671 /core/js/js.js | |
parent | 8110a3be699bbdea96df30472dce7862e0964901 (diff) | |
download | nextcloud-server-576e44f89071929055a2d8614521fb314a8f53f9.tar.gz nextcloud-server-576e44f89071929055a2d8614521fb314a8f53f9.zip |
Remove deprecated and unused fileDownloadPath
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/js.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 8e7796143d5..dbb5f2c6a04 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 = { |