Remove unused functions in App.tsx
This commit is contained in:
@@ -4731,29 +4731,6 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
||||
};
|
||||
};
|
||||
|
||||
const createProjectSequenceControlStepFromOption = (
|
||||
targetKey: string,
|
||||
effectOptionId: ProjectScheduleEffectOptionId
|
||||
): Extract<ProjectSequence["effects"][number], { type: "controlEffect" }> => {
|
||||
const targetOption = resolveSequenceControlTargetOption(targetKey);
|
||||
|
||||
if (targetOption === null) {
|
||||
throw new Error("The selected sequence control target no longer exists.");
|
||||
}
|
||||
|
||||
return {
|
||||
stepClass: getProjectSequenceControlStepClassForEffectOptionId(
|
||||
effectOptionId
|
||||
),
|
||||
type: "controlEffect",
|
||||
effect: createProjectScheduleEffectFromOption({
|
||||
targetOption,
|
||||
effectOptionId,
|
||||
previousEffect: null
|
||||
})
|
||||
};
|
||||
};
|
||||
|
||||
const updateProjectSequence = (
|
||||
sequenceId: string,
|
||||
label: string,
|
||||
@@ -4874,20 +4851,6 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
||||
);
|
||||
};
|
||||
|
||||
const handleAddProjectSequenceSpecificControlStep = (
|
||||
sequenceId: string,
|
||||
targetKey: string,
|
||||
effectOptionId: ProjectScheduleEffectOptionId,
|
||||
label: string,
|
||||
successMessage: string
|
||||
) => {
|
||||
updateProjectSequence(sequenceId, label, successMessage, (sequence) => {
|
||||
sequence.effects.push(
|
||||
createProjectSequenceControlStepFromOption(targetKey, effectOptionId)
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
const handleAddProjectSequenceDialogueStep = (
|
||||
sequenceId: string,
|
||||
dialogueId: string
|
||||
|
||||
Reference in New Issue
Block a user