Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-08 17:46:36 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-08 17:46:36 +0300
commit576e44f89071929055a2d8614521fb314a8f53f9 (patch)
tree520618e1b0f88b244875dfd3c2c2b20daf5ad671
parent8110a3be699bbdea96df30472dce7862e0964901 (diff)
Remove deprecated and unused fileDownloadPath
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--apps/files/js/files.js5
-rw-r--r--core/js/js.js11
2 files changed, 0 insertions, 16 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 094fb81d78b..016aef05a96 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 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('&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 = {