Skip to content

Commit

Permalink
Remove unused properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mjbvz committed Sep 26, 2019
1 parent 1ef51e2 commit 9b1bc4f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 18 deletions.
8 changes: 2 additions & 6 deletions src/vs/workbench/browser/parts/editor/binaryEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ import { CancellationToken } from 'vs/base/common/cancellation';
import { dispose } from 'vs/base/common/lifecycle';
import { IStorageService } from 'vs/platform/storage/common/storage';
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
import { IFileService } from 'vs/platform/files/common/files';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';

export interface IOpenCallbacks {
openInternal: (input: EditorInput, options: EditorOptions | undefined) => Promise<void>;
Expand Down Expand Up @@ -49,10 +47,8 @@ export abstract class BaseBinaryResourceEditor extends BaseEditor {
callbacks: IOpenCallbacks,
telemetryService: ITelemetryService,
themeService: IThemeService,
@IFileService private readonly fileService: IFileService,
@IWorkbenchEnvironmentService private readonly environmentService: IWorkbenchEnvironmentService,
@IStorageService storageService: IStorageService,
@IInstantiationService private readonly instantiationService: IInstantiationService,
) {
super(id, telemetryService, themeService, storageService);

Expand Down Expand Up @@ -95,11 +91,11 @@ export abstract class BaseBinaryResourceEditor extends BaseEditor {
this.resourceViewerContext.dispose();
}

this.resourceViewerContext = ResourceViewer.show({ name: model.getName(), resource: model.getResource(), size: model.getSize(), etag: model.getETag(), mime: model.getMime() }, this.fileService, this.binaryContainer, this.scrollbar, {
this.resourceViewerContext = ResourceViewer.show({ name: model.getName(), resource: model.getResource(), size: model.getSize(), etag: model.getETag(), mime: model.getMime() }, this.binaryContainer, this.scrollbar, {
openInternalClb: () => this.handleOpenInternalCallback(input, options),
openExternalClb: this.environmentService.configuration.remoteAuthority ? undefined : resource => this.callbacks.openExternal(resource),
metadataClb: meta => this.handleMetadataChanged(meta)
}, this.instantiationService);
});
}

private async handleOpenInternalCallback(input: EditorInput, options: EditorOptions | undefined): Promise<void> {
Expand Down
6 changes: 0 additions & 6 deletions src/vs/workbench/browser/parts/editor/resourceViewer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import { Schemas } from 'vs/base/common/network';
import { URI } from 'vs/base/common/uri';
import 'vs/css!./media/resourceviewer';
import * as nls from 'vs/nls';
import { IFileService } from 'vs/platform/files/common/files';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { ICssStyleCollector, ITheme, registerThemingParticipant } from 'vs/platform/theme/common/themeService';
import { IMAGE_PREVIEW_BORDER } from 'vs/workbench/common/theme';

Expand Down Expand Up @@ -75,11 +73,9 @@ export class ResourceViewer {

static show(
descriptor: IResourceDescriptor,
fileService: IFileService,
container: HTMLElement,
scrollbar: DomScrollableElement,
delegate: ResourceViewerDelegate,
instantiationService: IInstantiationService,
): ResourceViewerContext {

// Ensure CSS class
Expand All @@ -95,10 +91,8 @@ export class ResourceViewer {
return FileSeemsBinaryFileView.create(container, descriptor, scrollbar, delegate);
}
}

}


class FileTooLargeFileView {
static create(
container: HTMLElement,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ import { BINARY_FILE_EDITOR_ID } from 'vs/workbench/contrib/files/common/files';
import { IEditorService } from 'vs/workbench/services/editor/common/editorService';
import { IStorageService } from 'vs/platform/storage/common/storage';
import { IWorkbenchEnvironmentService } from 'vs/workbench/services/environment/common/environmentService';
import { IFileService } from 'vs/platform/files/common/files';
import { IInstantiationService } from 'vs/platform/instantiation/common/instantiation';
import { IOpenerService } from 'vs/platform/opener/common/opener';

/**
Expand All @@ -30,9 +28,7 @@ export class BinaryFileEditor extends BaseBinaryResourceEditor {
@IOpenerService private readonly openerService: IOpenerService,
@IEditorService private readonly editorService: IEditorService,
@IStorageService storageService: IStorageService,
@IFileService fileService: IFileService,
@IWorkbenchEnvironmentService environmentService: IWorkbenchEnvironmentService,
@IInstantiationService instantiationService: IInstantiationService,
) {
super(
BinaryFileEditor.ID,
Expand All @@ -42,10 +38,8 @@ export class BinaryFileEditor extends BaseBinaryResourceEditor {
},
telemetryService,
themeService,
fileService,
environmentService,
storageService,
instantiationService,
);
}

Expand Down

0 comments on commit 9b1bc4f

Please sign in to comment.