Skip to content

Commit 44ffa87

Browse files
committed
c
1 parent 1c8e8f2 commit 44ffa87

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/SnipItsView.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -150,25 +150,6 @@ export const SnipItsView = ({ setActivePage }: { setActivePage: React.Dispatch<R
150150
return matchesSearch && matchesFilters;
151151
});
152152

153-
const handleDelete = async (id: string) => {
154-
try {
155-
await fs.removeFile(`${collectionPath}/${id}.json`);
156-
await fetchSnippets(collectionPath);
157-
toast({
158-
title: "Deleted",
159-
description: "Snippet deleted.",
160-
});
161-
} catch (error) {
162-
console.error("Failed to delete snippet:", error);
163-
toast({
164-
title: "Error",
165-
description: "Failed to delete snippet.",
166-
variant: "destructive",
167-
});
168-
}
169-
};
170-
171-
172153
const handleEditClick = (id: string) => {
173154
setEditingSnippetId(id);
174155
};

0 commit comments

Comments
 (0)