提交 06099f6d 编写于 作者: I isidor

explorer: minor cleanup of unused methods

上级 b0c18ef6
...@@ -36,10 +36,6 @@ export class ExplorerDecorationsProvider implements IDecorationsProvider { ...@@ -36,10 +36,6 @@ export class ExplorerDecorationsProvider implements IDecorationsProvider {
return this._onDidChange.event; return this._onDidChange.event;
} }
changed(uris: URI[]): void {
this._onDidChange.fire(uris);
}
provideDecorations(resource: URI): IDecorationData | undefined { provideDecorations(resource: URI): IDecorationData | undefined {
const fileStat = this.explorerService.findClosest(resource); const fileStat = this.explorerService.findClosest(resource);
if (fileStat && fileStat.isRoot && fileStat.isError) { if (fileStat && fileStat.isRoot && fileStat.isError) {
......
...@@ -68,7 +68,6 @@ export class ExplorerView extends ViewletPanel { ...@@ -68,7 +68,6 @@ export class ExplorerView extends ViewletPanel {
// Refresh is needed on the initial explorer open // Refresh is needed on the initial explorer open
private shouldRefresh = true; private shouldRefresh = true;
private dragHandler: DelayedDragHandler; private dragHandler: DelayedDragHandler;
private decorationProvider: ExplorerDecorationsProvider;
private autoReveal = false; private autoReveal = false;
constructor( constructor(
...@@ -99,9 +98,9 @@ export class ExplorerView extends ViewletPanel { ...@@ -99,9 +98,9 @@ export class ExplorerView extends ViewletPanel {
this.readonlyContext = ExplorerResourceReadonlyContext.bindTo(contextKeyService); this.readonlyContext = ExplorerResourceReadonlyContext.bindTo(contextKeyService);
this.rootContext = ExplorerRootContext.bindTo(contextKeyService); this.rootContext = ExplorerRootContext.bindTo(contextKeyService);
this.decorationProvider = new ExplorerDecorationsProvider(this.explorerService, contextService); const decorationProvider = new ExplorerDecorationsProvider(this.explorerService, contextService);
decorationService.registerDecorationsProvider(this.decorationProvider); decorationService.registerDecorationsProvider(decorationProvider);
this.disposables.push(this.decorationProvider); this.disposables.push(decorationProvider);
this.disposables.push(this.resourceContext); this.disposables.push(this.resourceContext);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册