Skip to content

Commit 717f216

Browse files
committed
debug: remove more unused locals
#37212
1 parent 99dd43c commit 717f216

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

src/vs/workbench/parts/debug/electron-browser/debugViewer.ts

+2-13
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { IKeyboardEvent } from 'vs/base/browser/keyboardEvent';
1515
import * as dom from 'vs/base/browser/dom';
1616
import { IMouseEvent, DragMouseEvent } from 'vs/base/browser/mouseEvent';
1717
import { getPathLabel } from 'vs/base/common/labels';
18-
import { IAction, IActionRunner } from 'vs/base/common/actions';
18+
import { IAction } from 'vs/base/common/actions';
1919
import { IActionItem, Separator } from 'vs/base/browser/ui/actionbar/actionbar';
2020
import { ITree, IAccessibilityProvider, ContextMenuEvent, IDataSource, IRenderer, DRAG_OVER_REJECT, IDragAndDropData, IDragOverReaction, IActionProvider } from 'vs/base/parts/tree/browser/tree';
2121
import { InputBox, IInputValidationOptions } from 'vs/base/browser/ui/inputbox/inputBox';
@@ -310,8 +310,7 @@ export class CallStackController extends BaseDebugController {
310310

311311
export class CallStackActionProvider implements IActionProvider {
312312

313-
// @ts-ignore unused injected service
314-
constructor( @IInstantiationService private instantiationService: IInstantiationService, @debug.IDebugService private debugService: debug.IDebugService) {
313+
constructor( @IInstantiationService private instantiationService: IInstantiationService) {
315314
// noop
316315
}
317316

@@ -886,19 +885,13 @@ export class WatchExpressionsRenderer implements IRenderer {
886885
private static WATCH_EXPRESSION_TEMPLATE_ID = 'watchExpression';
887886
private static VARIABLE_TEMPLATE_ID = 'variables';
888887
private toDispose: lifecycle.IDisposable[];
889-
// @ts-ignore unused property
890-
private actionProvider: WatchExpressionsActionProvider;
891888

892889
constructor(
893-
actionProvider: IActionProvider,
894-
// @ts-ignore unused property
895-
private actionRunner: IActionRunner,
896890
@debug.IDebugService private debugService: debug.IDebugService,
897891
@IContextViewService private contextViewService: IContextViewService,
898892
@IThemeService private themeService: IThemeService
899893
) {
900894
this.toDispose = [];
901-
this.actionProvider = <WatchExpressionsActionProvider>actionProvider;
902895
}
903896

904897
public getHeight(tree: ITree, element: any): number {
@@ -1135,10 +1128,6 @@ export class BreakpointsRenderer implements IRenderer {
11351128
private static BREAKPOINT_TEMPLATE_ID = 'breakpoint';
11361129

11371130
constructor(
1138-
// @ts-ignore unused property
1139-
private actionProvider: BreakpointsActionProvider,
1140-
// @ts-ignore unused property
1141-
private actionRunner: IActionRunner,
11421131
@IWorkspaceContextService private contextService: IWorkspaceContextService,
11431132
@debug.IDebugService private debugService: debug.IDebugService,
11441133
@IContextViewService private contextViewService: IContextViewService,

src/vs/workbench/parts/debug/electron-browser/debugViews.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export class WatchExpressionsView extends ViewsViewletPanel {
194194
const actionProvider = new viewer.WatchExpressionsActionProvider(this.instantiationService);
195195
this.tree = new Tree(this.treeContainer, {
196196
dataSource: new viewer.WatchExpressionsDataSource(),
197-
renderer: this.instantiationService.createInstance(viewer.WatchExpressionsRenderer, actionProvider, this.actionRunner),
197+
renderer: this.instantiationService.createInstance(viewer.WatchExpressionsRenderer),
198198
accessibilityProvider: new viewer.WatchExpressionsAccessibilityProvider(),
199199
controller: this.instantiationService.createInstance(viewer.WatchExpressionsController, actionProvider, MenuId.DebugWatchContext),
200200
dnd: this.instantiationService.createInstance(viewer.WatchExpressionsDragAndDrop)
@@ -415,7 +415,7 @@ export class BreakpointsView extends ViewsViewletPanel {
415415

416416
this.tree = new Tree(this.treeContainer, {
417417
dataSource: new viewer.BreakpointsDataSource(),
418-
renderer: this.instantiationService.createInstance(viewer.BreakpointsRenderer, actionProvider, this.actionRunner),
418+
renderer: this.instantiationService.createInstance(viewer.BreakpointsRenderer),
419419
accessibilityProvider: this.instantiationService.createInstance(viewer.BreakpointsAccessibilityProvider),
420420
controller,
421421
sorter: {

0 commit comments

Comments
 (0)