Skip to content

Commit 99514a2

Browse files
raifdmuellerclaude
andcommitted
fix: remove dead code from PR #15 (commented duplicates, unused function)
Closes part of #16 (Muss: Code-Hygiene) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 8f22981 commit 99514a2

2 files changed

Lines changed: 0 additions & 35 deletions

File tree

src/constants.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,3 @@ export const TYPE_COLORS = {
1212
probabilistic: { color: "#a78bfa", bg: "#3b0764" },
1313
organizational: { color: "#fb923c", bg: "#7c2d12" },
1414
};
15-
16-
// export const VERSION = "1.5.2";
17-
18-
// export const TIER_BG = ["#10b981", "#f59e0b", "#f97316", "#ef4444"];
19-
20-
// export const TYPE_COLORS = {
21-
// deterministic: { color: "#38bdf8", bg: "#0c4a6e" },
22-
// probabilistic: { color: "#a78bfa", bg: "#3b0764" },
23-
// organizational: { color: "#fb923c", bg: "#7c2d12" },
24-
// };

src/utils.js

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,7 @@ export function polarToCartesian(cx, cy, r, angleDeg) {
88
return { x: cx + r * Math.cos(rad), y: cy + r * Math.sin(rad) };
99
}
1010

11-
export function getOffsetPosition(cx, cy, r, angleDeg, offset = 0) {
12-
const base = polarToCartesian(cx, cy, r, angleDeg);
13-
if (offset === 0) return base;
14-
const rad = ((angleDeg - 90) * Math.PI) / 180;
15-
return {
16-
x: base.x + offset * Math.cos(rad),
17-
y: base.y + offset * Math.sin(rad),
18-
};
19-
}
20-
2111
export function detectBrowserLanguage() {
2212
const nav = navigator.language || navigator.userLanguage || "";
2313
return nav.startsWith("de") ? "de" : "en";
2414
}
25-
26-
// export function getTierIndex(values) {
27-
// const mx = Math.max(...Object.values(values));
28-
// return mx <= 1 ? 0 : mx <= 2 ? 1 : mx <= 3 ? 2 : 3;
29-
// }
30-
31-
// export function polarToCartesian(cx, cy, r, angleDeg) {
32-
// const rad = ((angleDeg - 90) * Math.PI) / 180;
33-
// return { x: cx + r * Math.cos(rad), y: cy + r * Math.sin(rad) };
34-
// }
35-
36-
// export function detectBrowserLanguage() {
37-
// const nav = navigator.language || navigator.userLanguage || "";
38-
// return nav.startsWith("de") ? "de" : "en";
39-
// }

0 commit comments

Comments
 (0)