chore(deadcode): delete unused route wrappers · openclaw/openclaw@a977dc8
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,10 +3,7 @@ import type {
|
3 | 3 | ConversationRef, |
4 | 4 | SessionBindingRecord, |
5 | 5 | } from "../infra/outbound/session-binding-service.js"; |
6 | | -import { |
7 | | -normalizeChannelRouteRef, |
8 | | -type ChannelRouteRef, |
9 | | -} from "../plugin-sdk/channel-route.js"; |
| 6 | +import { normalizeChannelRouteRef, type ChannelRouteRef } from "../plugin-sdk/channel-route.js"; |
10 | 7 | import { |
11 | 8 | normalizeConversationTargetParams, |
12 | 9 | type ConversationTargetParams, |
@@ -63,11 +60,6 @@ export function resolveConversationDeliveryTarget(params: ConversationTargetPara
|
63 | 60 | return { to }; |
64 | 61 | } |
65 | 62 | |
66 | | -/** Converts a channel route back to legacy delivery context metadata. */ |
67 | | -export function deliveryContextFromRoute(route?: ChannelRouteRef): DeliveryContext | undefined { |
68 | | -return deliveryContextFromChannelRoute(route); |
69 | | -} |
70 | | - |
71 | 63 | /** Converts a persisted conversation reference into a channel route. */ |
72 | 64 | export function routeFromConversationRef( |
73 | 65 | conversation?: ConversationRef | null, |
@@ -104,7 +96,7 @@ export function routeToDeliveryFields(route?: ChannelRouteRef): {
|
104 | 96 | accountId?: string; |
105 | 97 | threadId?: string | number; |
106 | 98 | } { |
107 | | -const deliveryContext = deliveryContextFromRoute(route); |
| 99 | +const deliveryContext = deliveryContextFromChannelRoute(route); |
108 | 100 | return { |
109 | 101 | ...(deliveryContext ? { deliveryContext } : {}), |
110 | 102 | ...(deliveryContext?.channel ? { channel: deliveryContext.channel } : {}), |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。