remove unused function
This commit is contained in:
parent
1e3f28f9ed
commit
640dbcee20
1 changed files with 0 additions and 6 deletions
|
|
@ -36,7 +36,6 @@ interface TaskContextType {
|
||||||
files: TaskFile[];
|
files: TaskFile[];
|
||||||
addTask: (taskId: string) => void;
|
addTask: (taskId: string) => void;
|
||||||
addFiles: (files: Partial<TaskFile>[], taskId: string) => void;
|
addFiles: (files: Partial<TaskFile>[], taskId: string) => void;
|
||||||
removeTask: (taskId: string) => void;
|
|
||||||
refreshTasks: () => Promise<void>;
|
refreshTasks: () => Promise<void>;
|
||||||
cancelTask: (taskId: string) => Promise<void>;
|
cancelTask: (taskId: string) => Promise<void>;
|
||||||
isPolling: boolean;
|
isPolling: boolean;
|
||||||
|
|
@ -285,10 +284,6 @@ export function TaskProvider({ children }: { children: React.ReactNode }) {
|
||||||
await refetchTasks();
|
await refetchTasks();
|
||||||
}, [refetchTasks]);
|
}, [refetchTasks]);
|
||||||
|
|
||||||
const removeTask = useCallback((_taskId: string) => {
|
|
||||||
// This is now handled by React Query automatically
|
|
||||||
// Tasks will be removed from the list when they're no longer returned by the API
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
const cancelTask = useCallback(
|
const cancelTask = useCallback(
|
||||||
async (taskId: string) => {
|
async (taskId: string) => {
|
||||||
|
|
@ -316,7 +311,6 @@ export function TaskProvider({ children }: { children: React.ReactNode }) {
|
||||||
files,
|
files,
|
||||||
addTask,
|
addTask,
|
||||||
addFiles,
|
addFiles,
|
||||||
removeTask,
|
|
||||||
refreshTasks,
|
refreshTasks,
|
||||||
cancelTask,
|
cancelTask,
|
||||||
isPolling,
|
isPolling,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue