diff --git a/lib/store.js b/lib/store.js index df0d4cb..661b4b2 100644 --- a/lib/store.js +++ b/lib/store.js @@ -45,11 +45,4 @@ function search(term) { return matches(load().notes, term); } -function edit(id, text) { - const data = load(); - const note = data.notes.find((n) => n.id === id); - note.text = text; - save(data); -} - -module.exports = { all, add, remove, search, matches, edit }; +module.exports = { all, add, remove, search, matches };