Remove unused tracker anchor helper functions

This commit is contained in:
2026-02-26 09:10:05 +01:00
parent 8c5cef90fa
commit 48de0b8825

View File

@@ -296,19 +296,6 @@ function setTrackerInsertionMarkerLocked(marker, locked) {
marker.dataset.anchorLocked = locked ? '1' : '0';
}
function getTrackerInsertionAnchorInPost(postElement, buttonBar) {
if (!postElement || !buttonBar || !postElement.contains(buttonBar)) {
return null;
}
let anchor = buttonBar;
while (anchor.parentElement && anchor.parentElement !== postElement) {
anchor = anchor.parentElement;
}
return anchor && anchor.parentElement === postElement ? anchor : null;
}
function isNodeAfter(node, referenceNode) {
if (!node || !referenceNode || node === referenceNode) {
return false;
@@ -794,16 +781,6 @@ function insertMarkerBeforeAnchor(postElement, marker, anchor) {
return true;
}
function insertMarkerAfterAnchor(postElement, marker, anchor) {
const target = normalizeTrackerInsertionAnchor(postElement, anchor);
if (!target || !target.parentElement) {
return false;
}
target.parentElement.insertBefore(marker, target.nextSibling);
return true;
}
function getNextNonTrackerSibling(node) {
if (!node) {
return null;