Merge pull request #11682 from nextcloud/refactor/remove-deprecated-unused-fileDownloadPath

Remove deprecated and unused fileDownloadPath
This commit is contained in:
Morris Jobke 2018-10-08 18:04:08 +02:00 committed by GitHub
commit 3330600dc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 16 deletions

View File

@ -506,10 +506,5 @@ var folderDropOptions = {
tolerance: 'pointer' tolerance: 'pointer'
}; };
// override core's fileDownloadPath (legacy)
function fileDownloadPath(dir, file) {
return OCA.Files.Files.getDownloadUrl(file, dir);
}
// for backward compatibility // for backward compatibility
window.Files = OCA.Files.Files; window.Files = OCA.Files.Files;

View File

@ -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;'); 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 */ /** @namespace */
var OCP = {}, var OCP = {},
OC = { OC = {