mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 06:26:16 -04:00
remove dead code
This commit is contained in:
parent
4f332b7719
commit
c9a3bb08ee
3 changed files with 2 additions and 26 deletions
|
@ -4353,30 +4353,6 @@ jQuery.PrivateBin = (function($, sjcl, Base64, RawDeflate) {
|
|||
TopNav.showCreateButtons();
|
||||
};
|
||||
|
||||
/**
|
||||
* removes a saved paste
|
||||
*
|
||||
* @name Controller.removePaste
|
||||
* @function
|
||||
* @param {string} pasteId
|
||||
* @param {string} deleteToken
|
||||
* @deprecated not used anymore, de we still need it?
|
||||
*/
|
||||
me.removePaste = function(pasteId, deleteToken) {
|
||||
// unfortunately many web servers don't support DELETE (and PUT) out of the box
|
||||
// so we use a POST request
|
||||
Uploader.prepare();
|
||||
Uploader.setUrl(Helper.baseUri() + '?' + pasteId);
|
||||
Uploader.setUnencryptedData('deletetoken', deleteToken);
|
||||
|
||||
Uploader.setFailure(function () {
|
||||
Alert.showError(
|
||||
I18n._('Could not delete the paste, it was not stored in burn after reading mode.')
|
||||
);
|
||||
});
|
||||
Uploader.run();
|
||||
};
|
||||
|
||||
/**
|
||||
* application start
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue