diff --git a/public/modules/ui/labels-editor.js b/public/modules/ui/labels-editor.js index 647eb7bf..57054e42 100644 --- a/public/modules/ui/labels-editor.js +++ b/public/modules/ui/labels-editor.js @@ -18,7 +18,7 @@ function extractPathPoints(pathElement) { function getLabelData(textElement) { const id = textElement.id || ""; if (id.startsWith("stateLabel")) { - return Labels.getStateLabel(+id.slice(10)); + return Labels.get(+id.slice(10)); } // Custom labels: check for existing data-label-id attribute const dataLabelId = textElement.getAttribute("data-label-id"); diff --git a/src/modules/labels.ts b/src/modules/labels.ts index 8dce3d7f..20268ea3 100644 --- a/src/modules/labels.ts +++ b/src/modules/labels.ts @@ -66,12 +66,6 @@ class LabelsModule { ); } - getStateLabel(stateId: number): StateLabelData | undefined { - return pack.labels.find( - (l) => l.type === "state" && l.stateId === stateId, - ) as StateLabelData | undefined; - } - getBurgLabel(burgId: number): BurgLabelData | undefined { return pack.labels.find((l) => l.type === "burg" && l.burgId === burgId) as | BurgLabelData