diff --git a/lib/shared/updates/delete-account-spec.js b/lib/shared/updates/delete-account-spec.js --- a/lib/shared/updates/delete-account-spec.js +++ b/lib/shared/updates/delete-account-spec.js @@ -10,7 +10,6 @@ AccountDeletionUpdateData, AccountDeletionUpdateInfo, } from '../../types/update-types.js'; -import type { UserInfos } from '../../types/user-types.js'; import { tNumber, tShape, tUserID } from '../../utils/validation-utils.js'; export const deleteAccountSpec: UpdateSpec< @@ -60,14 +59,6 @@ } return operations; }, - reduceUserInfos(state: UserInfos, update: AccountDeletionUpdateInfo) { - const { deletedUserID } = update; - if (!state[deletedUserID]) { - return state; - } - const { [deletedUserID]: deleted, ...rest } = state; - return rest; - }, rawUpdateInfoFromRow(row: Object) { const content = JSON.parse(row.content); return { diff --git a/lib/shared/updates/update-spec.js b/lib/shared/updates/update-spec.js --- a/lib/shared/updates/update-spec.js +++ b/lib/shared/updates/update-spec.js @@ -71,7 +71,6 @@ state: ?CurrentUserInfo, update: UpdateInfo, ) => ?CurrentUserInfo, - +reduceUserInfos?: (state: UserInfos, update: UpdateInfo) => UserInfos, +reduceCalendarThreadFilters?: ( filteredThreadIDs: $ReadOnlySet, update: UpdateInfo,