Remove addHook/runHook system as it is never used

This commit is contained in:
djmaze 2020-08-22 01:04:15 +02:00
parent 996723a486
commit d88855ebd9
7 changed files with 1 additions and 128 deletions

View file

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