Skip to content

Commit

Permalink
remove IBroadcastService. Fixes #70831
Browse files Browse the repository at this point in the history
  • Loading branch information
aeschli committed May 27, 2019
1 parent 3fc919e commit 8a37437
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 115 deletions.
30 changes: 0 additions & 30 deletions src/vs/workbench/browser/web.simpleservices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,36 +144,6 @@ registerSingleton(IBackupFileService, SimpleBackupFileService, true);

//#endregion

//#region Broadcast

export const IBroadcastService = createDecorator<IBroadcastService>('broadcastService');

export interface IBroadcast {
channel: string;
payload: any;
}

export interface IBroadcastService {
_serviceBrand: any;

onBroadcast: Event<IBroadcast>;

broadcast(b: IBroadcast): void;
}

export class SimpleBroadcastService implements IBroadcastService {

_serviceBrand: any;

readonly onBroadcast: Event<IBroadcast> = Event.None;

broadcast(b: IBroadcast): void { }
}

registerSingleton(IBroadcastService, SimpleBroadcastService, true);

//#endregion

//#region Clipboard

export class SimpleClipboardService implements IClipboardService {
Expand Down
30 changes: 0 additions & 30 deletions src/vs/workbench/services/broadcast/common/broadcast.ts

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion src/vs/workbench/workbench.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ import 'vs/workbench/services/decorations/browser/decorationsService';
import 'vs/workbench/services/search/node/searchService';
import 'vs/workbench/services/progress/browser/progressService';
import 'vs/workbench/services/editor/browser/codeEditorService';
import 'vs/workbench/services/broadcast/electron-browser/broadcastService';
import 'vs/workbench/services/extensions/electron-browser/extensionHostDebugService';
import 'vs/workbench/services/preferences/browser/preferencesService';
import 'vs/workbench/services/output/node/outputChannelModelService';
Expand Down
3 changes: 0 additions & 3 deletions src/vs/workbench/workbench.web.main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ import { ContextViewService } from 'vs/platform/contextview/browser/contextViewS
// import { IURLService } from 'vs/platform/url/common/url';
// import { RelayURLService } from 'vs/platform/url/electron-browser/urlService';
import { IHeapService, NullHeapService } from 'vs/workbench/services/heap/common/heap';
import { IBroadcastService, NullBroadcastService } from 'vs/workbench/services/broadcast/common/broadcast';
import { ConfigurationResolverService } from 'vs/workbench/services/configurationResolver/browser/configurationResolverService';
import { IConfigurationResolverService } from 'vs/workbench/services/configurationResolver/common/configurationResolver';

Expand All @@ -108,7 +107,6 @@ import 'vs/workbench/services/decorations/browser/decorationsService';
// import 'vs/workbench/services/search/node/searchService';
import 'vs/workbench/services/progress/browser/progressService';
import 'vs/workbench/services/editor/browser/codeEditorService';
// import 'vs/workbench/services/broadcast/electron-browser/broadcastService';
import 'vs/workbench/services/preferences/browser/preferencesService';
import 'vs/workbench/services/output/common/outputChannelModelService';
import 'vs/workbench/services/configuration/common/jsonEditingService';
Expand Down Expand Up @@ -166,7 +164,6 @@ registerSingleton(IContextViewService, ContextViewService, true);
// registerSingleton(IMenubarService, MenubarService);
// registerSingleton(IURLService, RelayURLService);
registerSingleton(IHeapService, NullHeapService);
registerSingleton(IBroadcastService, NullBroadcastService);
registerSingleton(IContextMenuService, ContextMenuService);
registerSingleton(IConfigurationResolverService, ConfigurationResolverService, true);

Expand Down

0 comments on commit 8a37437

Please sign in to comment.