MCPcopy
hub / github.com/UdaraJay/Pile / delete

Method delete

src/main/utils/pileHighlights.js:78–90  ·  view source on GitHub ↗
(highlight)

Source from the content-addressed store, hash-verified

76 }
77
78 delete(highlight) {
79 if (this.highlights.has(highlight)) {
80 let updatedHighlight = this.highlights.get(highlight);
81 this.highlights.set(highlight, updatedHighlight);
82
83 // Todo: delete this tag from all the posts before
84 // deleting it
85
86 this.save();
87 }
88
89 return this.index;
90 }
91
92 save() {
93 if (!this.pilePath) return;

Callers 2

removeMethod · 0.80
highlights.tsFile · 0.80

Calls 3

saveMethod · 0.95
setMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected