mirror of
https://github.com/Microsoft/vscode
synced 2024-09-19 18:48:00 +00:00
remove unused locals
This commit is contained in:
parent
4d97c054e4
commit
2a69f8a460
|
@ -287,10 +287,6 @@ export class CompositeOverflowActivityAction extends ActivityAction {
|
|||
}
|
||||
|
||||
export class CompositeOverflowActivityActionItem extends ActivityActionItem {
|
||||
// @ts-ignore unused property
|
||||
private name: string;
|
||||
// @ts-ignore unused property
|
||||
private cssClass: string;
|
||||
private actions: Action[];
|
||||
|
||||
constructor(
|
||||
|
@ -300,15 +296,10 @@ export class CompositeOverflowActivityActionItem extends ActivityActionItem {
|
|||
private getBadge: (compositeId: string) => IBadge,
|
||||
private getCompositeOpenAction: (compositeId: string) => Action,
|
||||
colors: ICompositeBarColors,
|
||||
// @ts-ignore unused injected service
|
||||
@IInstantiationService private instantiationService: IInstantiationService,
|
||||
@IContextMenuService private contextMenuService: IContextMenuService,
|
||||
@IThemeService themeService: IThemeService
|
||||
) {
|
||||
super(action, { icon: true, colors }, themeService);
|
||||
|
||||
this.cssClass = action.class;
|
||||
this.name = action.label;
|
||||
}
|
||||
|
||||
public showMenu(): void {
|
||||
|
|
|
@ -123,9 +123,6 @@ class LanguageSurvey {
|
|||
|
||||
class LanguageSurveysContribution implements IWorkbenchContribution {
|
||||
|
||||
// @ts-ignore unused property
|
||||
private surveys: LanguageSurvey[];
|
||||
|
||||
constructor(
|
||||
@IInstantiationService instantiationService: IInstantiationService,
|
||||
@IStorageService storageService: IStorageService,
|
||||
|
@ -134,7 +131,7 @@ class LanguageSurveysContribution implements IWorkbenchContribution {
|
|||
@IFileService fileService: IFileService,
|
||||
@IModelService modelService: IModelService
|
||||
) {
|
||||
this.surveys = product.surveys.filter(surveyData => surveyData.surveyId && surveyData.editCount && surveyData.languageId && surveyData.surveyUrl && surveyData.userProbability).map(surveyData =>
|
||||
product.surveys.filter(surveyData => surveyData.surveyId && surveyData.editCount && surveyData.languageId && surveyData.surveyUrl && surveyData.userProbability).map(surveyData =>
|
||||
new LanguageSurvey(surveyData, instantiationService, storageService, messageService, telemetryService, fileService, modelService));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue