Merge pull request #1946 from PR0M3TH3AN/ai/dead-code-20240123-13702536329573366933

chore(ai): remove dead code (agent)
This commit is contained in:
thePR0M3TH3AN authored and GitHub committed 2026-01-30 10:05:35 -05:00
commit cc7fe64e90
9 files changed
+13 -89

No files matched your search

-29
View File
@@ -237,32 +237,3 @@ export function renderTagPillStrip({
return { root, buttons };
}
export function updateTagPillStrip({
root,
tags = [],
onTagActivate,
getTagState,
document: doc,
} = {}) {
if (!root) {
throw new Error("A root element is required to update the tag pill strip.");
}
const resolvedDocument = resolveDocument(doc ?? root?.ownerDocument);
assertDocument(resolvedDocument);
cleanupExistingButtons(root);
const buttons = tags.map((tag) =>
createTagButton({
doc: resolvedDocument,
tag,
onTagActivate,
getTagState,
}),
);
root.append(...buttons);
return { root, buttons };
}
+2 -2
View File
@@ -1,6 +1,6 @@
// js/ui/moderationCopy.js
export function buildModerationReasonText(context) {
function buildModerationReasonText(context) {
if (!context) {
return "";
}
@@ -31,7 +31,7 @@ export function buildModerationReasonText(context) {
return combined.charAt(0).toUpperCase() + combined.slice(1);
}
export function buildHiddenSummaryLabel(context) {
function buildHiddenSummaryLabel(context) {
if (!context) {
return "";
}