Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
isidorn committed Nov 15, 2017
1 parent b486528 commit c16b2df
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 37 deletions.
4 changes: 0 additions & 4 deletions src/vs/workbench/browser/composite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ export abstract class CompositeRegistry<T extends Composite> {
return this.composites.slice(0);
}

protected setComposites(compositesToSet: CompositeDescriptor<T>[]): void {
this.composites = compositesToSet;
}

private compositeById(id: string): CompositeDescriptor<T> {
for (let i = 0; i < this.composites.length; i++) {
if (this.composites[i].id === id) {
Expand Down
7 changes: 0 additions & 7 deletions src/vs/workbench/browser/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@ export class PanelRegistry extends CompositeRegistry<Panel> {
super.registerComposite(descriptor);
}

/**
* Returns the panel descriptor for the given id or null if none.
*/
public getPanel(id: string): PanelDescriptor {
return this.getComposite(id) as PanelDescriptor;
}

/**
* Returns an array of registered panels known to the platform.
*/
Expand Down
7 changes: 0 additions & 7 deletions src/vs/workbench/browser/part.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@ export abstract class Part extends Component {
public layout(dimension: Dimension): Dimension[] {
return this.partLayout.layout(dimension);
}

/**
* Returns the part layout implementation.
*/
public getLayout(): PartLayout {
return this.partLayout;
}
}

const TITLE_HEIGHT = 35;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,6 @@ export class ActivityActionItem extends BaseActionItem {
this.updateStyles();
}

public setBadge(badge: IBadge): void {
this.updateBadge(badge);
}

protected updateBadge(badge: IBadge): void {
this.$badgeContent.empty();
this.$badge.hide();
Expand Down
16 changes: 1 addition & 15 deletions src/vs/workbench/parts/debug/browser/debugActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { ICommandService } from 'vs/platform/commands/common/commands';
import { IWorkspaceContextService, WorkbenchState } from 'vs/platform/workspace/common/workspace';
import { IFileService } from 'vs/platform/files/common/files';
import { IMessageService } from 'vs/platform/message/common/message';
import { IDebugService, State, IProcess, IThread, IEnablement, IBreakpoint, IStackFrame, IFunctionBreakpoint, IDebugEditorContribution, EDITOR_CONTRIBUTION_ID, IExpression, REPL_ID, ProcessState }
import { IDebugService, State, IProcess, IThread, IEnablement, IBreakpoint, IStackFrame, IDebugEditorContribution, EDITOR_CONTRIBUTION_ID, IExpression, REPL_ID, ProcessState }
from 'vs/workbench/parts/debug/common/debug';
import { Variable, Expression, Thread, Breakpoint, Process } from 'vs/workbench/parts/debug/common/debugModel';
import { IPartService } from 'vs/workbench/services/part/common/partService';
Expand Down Expand Up @@ -539,20 +539,6 @@ export class AddFunctionBreakpointAction extends AbstractDebugAction {
}
}

export class RenameFunctionBreakpointAction extends AbstractDebugAction {
static ID = 'workbench.debug.viewlet.action.renameFunctionBreakpointAction';
static LABEL = nls.localize('renameFunctionBreakpoint', "Rename Function Breakpoint");

constructor(id: string, label: string, @IDebugService debugService: IDebugService, @IKeybindingService keybindingService: IKeybindingService) {
super(id, label, null, debugService, keybindingService);
}

public run(fbp: IFunctionBreakpoint): TPromise<any> {
this.debugService.getViewModel().setSelectedFunctionBreakpoint(fbp);
return TPromise.as(null);
}
}

export class AddConditionalBreakpointAction extends AbstractDebugAction {
static ID = 'workbench.debug.viewlet.action.addConditionalBreakpointAction';
static LABEL = nls.localize('addConditionalBreakpoint', "Add Conditional Breakpoint...");
Expand Down

0 comments on commit c16b2df

Please sign in to comment.