diff --git a/src/function/sync/apply-actions/dispatch-app-logic-action/addinstalledapps.ts b/src/function/sync/apply-actions/dispatch-app-logic-action/addinstalledapps.ts deleted file mode 100644 index beead96..0000000 --- a/src/function/sync/apply-actions/dispatch-app-logic-action/addinstalledapps.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * server component for the TimeLimit App - * Copyright (C) 2019 - 2022 Jonas Lochmann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, version 3 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import { AddInstalledAppsAction } from '../../../../action' -import { Cache } from '../cache' - -export async function dispatchAddInstalledApps (_: { - deviceId: string - action: AddInstalledAppsAction - cache: Cache -}) { - // do nothing -} diff --git a/src/function/sync/apply-actions/dispatch-app-logic-action/index.ts b/src/function/sync/apply-actions/dispatch-app-logic-action/index.ts index f914bcf..f535247 100644 --- a/src/function/sync/apply-actions/dispatch-app-logic-action/index.ts +++ b/src/function/sync/apply-actions/dispatch-app-logic-action/index.ts @@ -36,18 +36,15 @@ import { import { EventHandler } from '../../../../monitoring/eventhandler' import { Cache } from '../cache' import { ActionObjectTypeNotHandledException } from '../exception/illegal-state' -import { dispatchAddInstalledApps } from './addinstalledapps' import { dispatchAddUsedTime } from './addusedtime' import { dispatchAddUsedTimeVersion2 } from './addusedtime2' import { dispatchFinishKeyRequestAction } from './finishkeyrequest' import { dispatchForceSyncAction } from './forcesync' import { dispatchMarkTaskPendingAction } from './marktaskpendingaction' import { dispatchReplyToKeyRequestAction } from './replytokeyrequest' -import { dispatchRemoveInstalledApps } from './removeinstalledapps' import { dispatchSendKeyRequestAction } from './sendkeyrequest' import { dispatchSignOutAtDevice } from './signoutatdevice' import { dispatchTriedDisablingDeviceAdmin } from './trieddisablingdeviceadmin' -import { dispatchUpdateAppActivities } from './updateappactivities' import { dispatchUpdateDeviceStatus } from './updatedevicestatus' import { dispatchUpdateInstalledApps } from './updateinstalledapps' import { dispatchUploadDevicePublicKeyAction } from './uploaddevicepublickey' @@ -59,7 +56,7 @@ export const dispatchAppLogicAction = async ({ action, deviceId, cache, eventHan eventHandler: EventHandler }) => { if (action instanceof AddInstalledAppsAction) { - await dispatchAddInstalledApps({ deviceId, action, cache }) + // do nothing } else if (action instanceof AddUsedTimeAction) { await dispatchAddUsedTime({ deviceId, action, cache }) } else if (action instanceof AddUsedTimeActionVersion2) { @@ -73,7 +70,7 @@ export const dispatchAppLogicAction = async ({ action, deviceId, cache, eventHan } else if (action instanceof ReplyToKeyRequestAction) { await dispatchReplyToKeyRequestAction({ deviceId, action, cache, eventHandler }) } else if (action instanceof RemoveInstalledAppsAction) { - await dispatchRemoveInstalledApps({ deviceId, action, cache }) + // do nothing } else if (action instanceof SendKeyRequestAction) { await dispatchSendKeyRequestAction({ deviceId, action, cache }) } else if (action instanceof SignOutAtDeviceAction) { @@ -81,7 +78,7 @@ export const dispatchAppLogicAction = async ({ action, deviceId, cache, eventHan } else if (action instanceof UpdateDeviceStatusAction) { await dispatchUpdateDeviceStatus({ deviceId, action, cache }) } else if (action instanceof UpdateAppActivitiesAction) { - await dispatchUpdateAppActivities({ deviceId, action, cache }) + // do nothing } else if (action instanceof TriedDisablingDeviceAdminAction) { await dispatchTriedDisablingDeviceAdmin({ deviceId, action, cache }) } else if (action instanceof UpdateInstalledAppsAction) { diff --git a/src/function/sync/apply-actions/dispatch-app-logic-action/removeinstalledapps.ts b/src/function/sync/apply-actions/dispatch-app-logic-action/removeinstalledapps.ts deleted file mode 100644 index 3ada864..0000000 --- a/src/function/sync/apply-actions/dispatch-app-logic-action/removeinstalledapps.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * server component for the TimeLimit App - * Copyright (C) 2019 - 2022 Jonas Lochmann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, version 3 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import { RemoveInstalledAppsAction } from '../../../../action' -import { Cache } from '../cache' - -export async function dispatchRemoveInstalledApps (_: { - deviceId: string - action: RemoveInstalledAppsAction - cache: Cache -}) { - // do nothing -} diff --git a/src/function/sync/apply-actions/dispatch-app-logic-action/updateappactivities.ts b/src/function/sync/apply-actions/dispatch-app-logic-action/updateappactivities.ts deleted file mode 100644 index cbe08b1..0000000 --- a/src/function/sync/apply-actions/dispatch-app-logic-action/updateappactivities.ts +++ /dev/null @@ -1,27 +0,0 @@ -/* - * server component for the TimeLimit App - * Copyright (C) 2019 - 2022 Jonas Lochmann - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, version 3 of the License. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - */ - -import { UpdateAppActivitiesAction } from '../../../../action' -import { Cache } from '../cache' - -export async function dispatchUpdateAppActivities (_: { - deviceId: string - action: UpdateAppActivitiesAction - cache: Cache -}) { - // do nothing -}