remove unused locals

This commit is contained in:
isidor 2017-11-16 14:37:35 +01:00
parent 4d97c054e4
commit 2a69f8a460
2 changed files with 1 additions and 13 deletions

View file

@ -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 {

View file

@ -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));
}