Skip to content

Commit

Permalink
remove unused overload, #29194
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieken committed Aug 22, 2017
1 parent 2579db2 commit 9d87288
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion src/vs/platform/files/common/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ export interface IFileService {
* Allows to stop a watcher on the provided resource or absolute fs path.
*/
unwatchFileChanges(resource: URI): void;
unwatchFileChanges(fsPath: string): void;

/**
* Configures the file service with the provided options.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,10 +286,8 @@ export class FileService implements IFileService {
this.raw.watchFileChanges(resource);
}

public unwatchFileChanges(resource: uri): void;
public unwatchFileChanges(path: string): void;
public unwatchFileChanges(arg1: any): void {
this.raw.unwatchFileChanges(arg1);
public unwatchFileChanges(resource: uri): void {
this.raw.unwatchFileChanges(resource);
}

public getEncoding(resource: uri, preferredEncoding?: string): string {
Expand Down
6 changes: 1 addition & 5 deletions src/vs/workbench/services/files/node/fileService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,7 @@ export class FileService implements IFileService {
});
}

public unwatchFileChanges(resource: uri): void;
public unwatchFileChanges(path: string): void;
public unwatchFileChanges(arg1: any): void {
const resource = (typeof arg1 === 'string') ? uri.parse(arg1) : arg1 as uri;

public unwatchFileChanges(resource: uri): void {
const watcher = this.activeFileChangesWatchers.get(resource);
if (watcher) {
watcher.close();
Expand Down
4 changes: 1 addition & 3 deletions src/vs/workbench/test/workbenchTestServices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -756,9 +756,7 @@ export class TestFileService implements IFileService {
watchFileChanges(resource: URI): void {
}

unwatchFileChanges(resource: URI): void;
unwatchFileChanges(fsPath: string): void;
unwatchFileChanges(arg1: any): void {
unwatchFileChanges(resource: URI): void {
}

updateOptions(options: any): void {
Expand Down

0 comments on commit 9d87288

Please sign in to comment.