From c9a3bb08eea5b3836bd920c8beabfd1a0b24fdb4 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sat, 4 Aug 2018 17:49:08 +0200 Subject: [PATCH] remove dead code --- js/privatebin.js | 24 ------------------------ tpl/bootstrap.php | 2 +- tpl/page.php | 2 +- 3 files changed, 2 insertions(+), 26 deletions(-) diff --git a/js/privatebin.js b/js/privatebin.js index 30b2b87..8a0fe8a 100644 --- a/js/privatebin.js +++ b/js/privatebin.js @@ -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 * diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index 2ab5484..d6a577f 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -75,7 +75,7 @@ if ($MARKDOWN): - + diff --git a/tpl/page.php b/tpl/page.php index a03da04..932be4b 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -53,7 +53,7 @@ if ($MARKDOWN): - +