chore(deadcode): remove unused channel alias lister · openclaw/openclaw@eb5bb7f
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -58,13 +58,6 @@ export const CHAT_CHANNEL_ALIASES: Record<string, ChatChannelId> = Object.freeze
|
58 | 58 | ), |
59 | 59 | ) as Record<string, ChatChannelId>; |
60 | 60 | |
61 | | -/** |
62 | | - * Lists configured built-in chat channel aliases. |
63 | | - */ |
64 | | -export function listChatChannelAliases(): string[] { |
65 | | -return Object.keys(CHAT_CHANNEL_ALIASES); |
66 | | -} |
67 | | - |
68 | 61 | function listRuntimeBundledChatChannelEntries(): BundledChatChannelEntry[] { |
69 | 62 | // Generated metadata is the hot-path source. The runtime catalog fallback covers |
70 | 63 | // dynamically registered bundled metadata without repeated catalog reads. |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -852,7 +852,6 @@ vi.mock("../channels/chat-meta.js", () => {
|
852 | 852 | return { |
853 | 853 | CHAT_CHANNEL_ALIASES: {}, |
854 | 854 | listChatChannels: () => entries, |
855 | | -listChatChannelAliases: () => [], |
856 | 855 | getChatChannelMeta: (id: (typeof mockChatChannels)[number]) => byId[id], |
857 | 856 | normalizeChatChannelId: (raw?: string | null) => { |
858 | 857 | const value = raw?.trim().toLowerCase(); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -71,7 +71,6 @@ vi.mock("../channels/registry.js", () => ({
|
71 | 71 | CHAT_CHANNEL_ORDER: [], |
72 | 72 | CHANNEL_IDS: [], |
73 | 73 | listChatChannels: () => [], |
74 | | -listChatChannelAliases: () => [], |
75 | 74 | getChatChannelMeta: () => null, |
76 | 75 | normalizeChatChannelId: () => null, |
77 | 76 | normalizeChannelId: () => null, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。