mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 03:29:00 +01:00
Clean up unused code
This commit is contained in:
@@ -1131,8 +1131,6 @@ export enum TaskPanelKind {
|
||||
export class TaskGroup implements vscode.TaskGroup {
|
||||
|
||||
private _id: string;
|
||||
// @ts-ignore unused property
|
||||
private _label: string;
|
||||
|
||||
public static Clean: TaskGroup = new TaskGroup('clean', 'Clean');
|
||||
|
||||
@@ -1142,15 +1140,14 @@ export class TaskGroup implements vscode.TaskGroup {
|
||||
|
||||
public static Test: TaskGroup = new TaskGroup('test', 'Test');
|
||||
|
||||
constructor(id: string, label: string) {
|
||||
constructor(id: string, _label: string) {
|
||||
if (typeof id !== 'string') {
|
||||
throw illegalArgument('name');
|
||||
}
|
||||
if (typeof label !== 'string') {
|
||||
if (typeof _label !== 'string') {
|
||||
throw illegalArgument('name');
|
||||
}
|
||||
this._id = id;
|
||||
this._label = label;
|
||||
}
|
||||
|
||||
get id(): string {
|
||||
|
||||
Reference in New Issue
Block a user