mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
chore(ai): remove dead code (unused exports & deps)
This commit is contained in:
1 parent
3bfe8d664f
commit
4a0b81ad98
25 files changed
+2
-287
No files matched your search
@@ -140,28 +140,3 @@ export function closeStaticModal(target, { document: providedDocument } = {}) {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function toggleStaticModal(target, shouldOpen, options = {}) {
|
||||
if (shouldOpen) {
|
||||
return openStaticModal(target, options);
|
||||
}
|
||||
return closeStaticModal(target, options);
|
||||
}
|
||||
|
||||
export function destroyStaticModal(target, { document: providedDocument } = {}) {
|
||||
const doc = resolveDocument(providedDocument);
|
||||
const root = resolveRoot(target, doc);
|
||||
if (!root) {
|
||||
return false;
|
||||
}
|
||||
const record = accessibilityByModal.get(root);
|
||||
if (!record) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
record.accessibility.destroy?.();
|
||||
} finally {
|
||||
accessibilityByModal.delete(root);
|
||||
}
|
||||
synchronizeDocumentModalState(record.document);
|
||||
return true;
|
||||
}
|
||||
Reference in new issue
Block a user