remove dead code

This commit is contained in:
El RIDO 2018-08-04 17:49:08 +02:00
parent 4f332b7719
commit c9a3bb08ee
No known key found for this signature in database
GPG Key ID: 0F5C940A6BD81F92
3 changed files with 2 additions and 26 deletions

View File

@ -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
*

View File

@ -75,7 +75,7 @@ if ($MARKDOWN):
<?php
endif;
?>
<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-DXExPuasUzzEw3u6oitAclWcc6XW4Heufg8MxbbwYmBlSDQmnnvCwanBujX7n/48bFW6sPgpW1oMC/898t2AvA==" crossorigin="anonymous"></script>
<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-o5ooD/VR75PQ2XkiYR0Pnyl1pjRRaeReJM7l1dUuEKXqlkP9Uv8bTR5QfbxiD0eCT2Vsm1SpjgPNhTdwr7zaQg==" crossorigin="anonymous"></script>
<!--[if lt IE 10]>
<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
<![endif]-->

View File

@ -53,7 +53,7 @@ if ($MARKDOWN):
<?php
endif;
?>
<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-DXExPuasUzzEw3u6oitAclWcc6XW4Heufg8MxbbwYmBlSDQmnnvCwanBujX7n/48bFW6sPgpW1oMC/898t2AvA==" crossorigin="anonymous"></script>
<script type="text/javascript" data-cfasync="false" src="js/privatebin.js?<?php echo rawurlencode($VERSION); ?>" integrity="sha512-o5ooD/VR75PQ2XkiYR0Pnyl1pjRRaeReJM7l1dUuEKXqlkP9Uv8bTR5QfbxiD0eCT2Vsm1SpjgPNhTdwr7zaQg==" crossorigin="anonymous"></script>
<!--[if lt IE 10]>
<style type="text/css">body {padding-left:60px;padding-right:60px;} #ienotice {display:block;} #oldienotice {display:block;}</style>
<![endif]-->