MCPcopy
hub / github.com/callumalpass/tasknotes / destroy

Method destroy

src/utils/DependencyCache.ts:739–751  ·  view source on GitHub ↗

* Cleanup

()

Source from the content-addressed store, hash-verified

737 * Cleanup
738 */
739 destroy(): void {
740 // Unregister all event listeners
741 this.eventListeners.forEach((ref) => {
742 this.app.metadataCache.offref(ref);
743 });
744 this.eventListeners = [];
745
746 // Clear indexes
747 this.clearIndexes();
748
749 this.initialized = false;
750 this.indexesBuilt = false;
751 }
752}

Callers

nothing calls this directly

Calls 2

clearIndexesMethod · 0.95
offrefMethod · 0.65

Tested by

no test coverage detected