mirror of
https://github.com/callumalpass/tasknotes.git
synced 2026-07-22 12:50:26 +00:00
MinimalNativeCache was completely unused in production code - it was replaced by TaskManager but never deleted. This commit removes ~1,910 lines of dead code. Changes: - Deleted src/utils/MinimalNativeCache.ts (1,910 lines) - Deleted 4 dedicated MinimalNativeCache test files - Updated 7 FilterService test files to use TaskManager instead - Updated mock factories to reference TaskManager - Updated comments in main.ts and FilterService.ts Evidence it was unused: - Zero imports in src/ (only in tests) - Zero instantiations in production code - main.ts uses TaskManager (this.cacheManager) - FilterService uses TaskManager in production - TaskManager explicitly does NOT cache (JIT design) The TaskManager approach: - Reads on-demand from Obsidian's native metadataCache - No internal indexes or caching - Event-driven to stay in sync - Simpler and more reliable than MinimalNativeCache Build Verified: ✓ Tests Updated: ✓ Total Impact: ~2,000 lines removed |
||
|---|---|---|
| .. | ||
| assertion-helpers.ts | ||
| dom-helpers.ts | ||
| integration-helpers.ts | ||
| mock-factories.ts | ||