mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Remove addHook/runHook system as it is never used
This commit is contained in:
parent
996723a486
commit
d88855ebd9
7 changed files with 1 additions and 128 deletions
|
|
@ -3,7 +3,6 @@ import { StorageResultType, Notification } from 'Common/Enums';
|
|||
import { pInt, pString } from 'Common/Utils';
|
||||
import { data as GlobalsData } from 'Common/Globals';
|
||||
import { ajax } from 'Common/Links';
|
||||
import { runHook } from 'Common/Plugins';
|
||||
|
||||
import * as Settings from 'Storage/Settings';
|
||||
|
||||
|
|
@ -81,14 +80,6 @@ class AbstractAjaxRemote {
|
|||
GlobalsData.iTokenErrorCount = 0;
|
||||
}
|
||||
|
||||
runHook('ajax-default-response', [
|
||||
sRequestAction,
|
||||
StorageResultType.Success === sType ? oData : null,
|
||||
sType,
|
||||
bCached,
|
||||
oRequestParameters
|
||||
]);
|
||||
|
||||
if (fCallback) {
|
||||
fCallback(
|
||||
sType,
|
||||
|
|
@ -222,8 +213,6 @@ class AbstractAjaxRemote {
|
|||
|
||||
sGetAdd = pString(sGetAdd);
|
||||
|
||||
runHook('ajax-default-request', [sAction, oParameters, sGetAdd]);
|
||||
|
||||
return this.ajaxRequest(
|
||||
fCallback,
|
||||
oParameters,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue