From 576e44f89071929055a2d8614521fb314a8f53f9 Mon Sep 17 00:00:00 2001 From: Christoph Wurst <christoph@winzerhof-wurst.at> Date: Mon, 8 Oct 2018 16:46:36 +0200 Subject: Remove deprecated and unused fileDownloadPath Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> --- core/js/js.js | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'core') 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 = { -- cgit v1.2.3