mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Remove unused code
This commit is contained in:
parent
3669fdc752
commit
07fd143853
5 changed files with 9 additions and 35 deletions
|
|
@ -44,9 +44,6 @@ class AbstractAjaxRemote {
|
|||
|
||||
if (StorageResultType.Success === sType && oData && !oData.Result) {
|
||||
const err = oData ? oData.ErrorCode : null;
|
||||
if (err) {
|
||||
window.console.log('AbstractAjaxRemote ' + sRequestAction + ' request failed:', err, Notification.getKeyByValue(err));
|
||||
}
|
||||
if (
|
||||
oData && [
|
||||
Notification.AuthError,
|
||||
|
|
@ -199,7 +196,6 @@ if (err) {
|
|||
|
||||
this.defaultResponse(fResultCallback, action, sType, oData, cached, params);
|
||||
}).catch(err => {
|
||||
window.console.log('AbstractAjaxRemote ' + action + ' request failed:', err, Notification.getKeyByValue(err));
|
||||
if (err.name == 'AbortError') { // handle abort()
|
||||
return Promise.reject(Notification.AjaxAbort);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue