Skip to content

Commit 68281f3

Browse files
committed
remove unecessary type
1 parent d8f17bc commit 68281f3

File tree

1 file changed

+3
-27
lines changed

1 file changed

+3
-27
lines changed

lldb/tools/lldb-dap/src-ts/ui/symbols-provider.ts

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -84,25 +84,15 @@ export class SymbolsProvider extends DisposableContext {
8484
}
8585
}
8686

87-
private async getSymbolsForModule(session: vscode.DebugSession, moduleId: string): Promise<DAPSymbol[]> {
87+
private async getSymbolsForModule(session: vscode.DebugSession, moduleId: string): Promise<DAPSymbolType[]> {
8888
console.log(`Getting symbols for module: ${moduleId}`);
8989
const symbols_response: { symbols: Array<DAPSymbolType> } = await session.customRequest("dapGetModuleSymbols", { moduleId });
9090

9191

92-
return symbols_response?.symbols.map(symbol => new DAPSymbol(
93-
symbol.userId,
94-
symbol.isDebug,
95-
symbol.isSynthetic,
96-
symbol.isExternal,
97-
symbol.type,
98-
symbol.fileAddress,
99-
symbol.loadAddress,
100-
symbol.size,
101-
symbol.name,
102-
)) || [];
92+
return symbols_response?.symbols || [];
10393
}
10494

105-
private async showSymbolsInNewTab(moduleName: string, symbols: DAPSymbol[]) {
95+
private async showSymbolsInNewTab(moduleName: string, symbols: DAPSymbolType[]) {
10696
const panel = vscode.window.createWebviewPanel(
10797
"lldb-dap.symbols",
10898
`Symbols for ${moduleName}`,
@@ -193,17 +183,3 @@ class ModuleQuickPickItem implements vscode.QuickPickItem {
193183
return this.module.id.toString();
194184
}
195185
}
196-
197-
class DAPSymbol {
198-
constructor(
199-
public readonly userId: number,
200-
public readonly isDebug: boolean,
201-
public readonly isSynthetic: boolean,
202-
public readonly isExternal: boolean,
203-
public readonly type: string,
204-
public readonly fileAddress: number,
205-
public readonly loadAddress: number | undefined,
206-
public readonly size: number,
207-
public readonly name: string,
208-
) {}
209-
}

0 commit comments

Comments
 (0)