chore(deadcode): remove unused test bindings · openclaw/openclaw@d43bc37
vincentkoc
·
2026-06-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -40,7 +40,6 @@ const {
|
40 | 40 | replySpy, |
41 | 41 | resolveExecApprovalSpy, |
42 | 42 | sendMessageSpy, |
43 | | -setSessionStoreEntriesForTest: _setSessionStoreEntriesForTest, |
44 | 43 | setMyCommandsSpy, |
45 | 44 | telegramBotDepsForTest, |
46 | 45 | telegramBotRuntimeForTest, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -28,12 +28,8 @@ vi.mock("./method-scopes.js", () => {
|
28 | 28 | }; |
29 | 29 | }); |
30 | 30 | |
31 | | -const { |
32 | | - readJsonBodyOrError, |
33 | | -sendJson: _sendJson, |
34 | | - sendMethodNotAllowed, |
35 | | - sendMissingScopeForbidden, |
36 | | -} = await import("./http-common.js"); |
| 31 | +const { readJsonBodyOrError, sendMethodNotAllowed, sendMissingScopeForbidden } = |
| 32 | +await import("./http-common.js"); |
37 | 33 | const { authorizeGatewayHttpRequestOrReply, resolveTrustedHttpOperatorScopes } = |
38 | 34 | await import("./http-utils.js"); |
39 | 35 | const { authorizeOperatorScopesForMethod } = await import("./method-scopes.js"); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -8,7 +8,6 @@ const discordApiTypes = requireDiscordApiTypes("discord-api-types/v10") as typeo
|
8 | 8 | export default discordApiTypes; |
9 | 9 | export const { |
10 | 10 | APIApplicationCommandPermissionsConstant, |
11 | | - APIVersion, |
12 | 11 | ActivityFlags, |
13 | 12 | ActivityLocationKind, |
14 | 13 | ActivityPlatform, |
@@ -32,8 +31,6 @@ export const {
|
32 | 31 | AutoModerationRuleTriggerType, |
33 | 32 | BaseThemeType, |
34 | 33 | ButtonStyle, |
35 | | - CDNRoutes, |
36 | | - CannotSendMessagesToThisUserErrorCodes, |
37 | 34 | ChannelFlags, |
38 | 35 | ChannelType, |
39 | 36 | ComponentType, |
@@ -42,10 +39,8 @@ export const {
|
42 | 39 | EmbedFlags, |
43 | 40 | EmbedMediaFlags, |
44 | 41 | EmbedType, |
45 | | - EntitlementOwnerType, |
46 | 42 | EntitlementType, |
47 | 43 | EntryPointCommandHandlerType, |
48 | | - FormattingPatterns, |
49 | 44 | ForumLayoutType, |
50 | 45 | GatewayCloseCodes, |
51 | 46 | GatewayDispatchEvents, |
@@ -90,25 +85,13 @@ export const {
|
90 | 85 | MessageSearchSortMode, |
91 | 86 | MessageType, |
92 | 87 | NameplatePalette, |
93 | | - OAuth2Routes, |
94 | 88 | OAuth2Scopes, |
95 | 89 | OverwriteType, |
96 | 90 | PermissionFlagsBits, |
97 | 91 | PollLayoutType, |
98 | 92 | PresenceUpdateStatus, |
99 | | - RESTJSONErrorCodes, |
100 | | - RPCCloseEventCodes, |
101 | | - RPCCommands, |
102 | | - RPCDeviceType, |
103 | | - RPCErrorCodes, |
104 | | - RPCEvents, |
105 | | - RPCVersion, |
106 | | - RPCVoiceSettingsModeType, |
107 | | - RPCVoiceShortcutKeyComboKeyType, |
108 | 93 | ReactionType, |
109 | | - RelationshipType, |
110 | 94 | RoleFlags, |
111 | | - RouteBases, |
112 | 95 | Routes, |
113 | 96 | SKUFlags, |
114 | 97 | SKUType, |
@@ -118,7 +101,6 @@ export const {
|
118 | 101 | StageInstancePrivacyLevel, |
119 | 102 | StatusDisplayType, |
120 | 103 | StickerFormatType, |
121 | | - StickerPackApplicationId, |
122 | 104 | StickerType, |
123 | 105 | SubscriptionStatus, |
124 | 106 | TeamMemberMembershipState, |
@@ -133,7 +115,5 @@ export const {
|
133 | 115 | Utils, |
134 | 116 | VideoQualityMode, |
135 | 117 | VoiceChannelEffectSendAnimationType, |
136 | | - VoiceConnectionStates, |
137 | 118 | WebhookType, |
138 | | - urlSafeCharacters, |
139 | 119 | } = discordApiTypes; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。