Remove unused actor routine effect functions from App.tsx
This commit is contained in:
@@ -328,7 +328,6 @@ import {
|
|||||||
type InteractionTriggerKind
|
type InteractionTriggerKind
|
||||||
} from "../interactions/interaction-links";
|
} from "../interactions/interaction-links";
|
||||||
import {
|
import {
|
||||||
createSetActorPresenceControlEffect,
|
|
||||||
cloneControlEffect,
|
cloneControlEffect,
|
||||||
formatControlEffectValue,
|
formatControlEffectValue,
|
||||||
formatControlTargetRef,
|
formatControlTargetRef,
|
||||||
@@ -4384,25 +4383,6 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const upsertActorRoutineEffect = (
|
|
||||||
routine: ProjectScheduleRoutine,
|
|
||||||
effect: ProjectScheduleRoutine["effects"][number]
|
|
||||||
) => {
|
|
||||||
routine.effects = [
|
|
||||||
...routine.effects.filter((candidate) => candidate.type !== effect.type),
|
|
||||||
effect
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
const removeActorRoutineEffect = (
|
|
||||||
routine: ProjectScheduleRoutine,
|
|
||||||
effectType: ProjectScheduleRoutine["effects"][number]["type"]
|
|
||||||
) => {
|
|
||||||
routine.effects = routine.effects.filter(
|
|
||||||
(candidate) => candidate.type !== effectType
|
|
||||||
);
|
|
||||||
};
|
|
||||||
|
|
||||||
const resolveProjectScheduleTargetOption = (targetKey: string) =>
|
const resolveProjectScheduleTargetOption = (targetKey: string) =>
|
||||||
getProjectScheduleTargetOptionByKey(projectScheduleTargetOptions, targetKey);
|
getProjectScheduleTargetOptionByKey(projectScheduleTargetOptions, targetKey);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user