remove some unused code (for #38414)
This commit is contained in:
parent
241f624bd2
commit
ed99496e1f
7 changed files with 1 additions and 31 deletions
|
@ -13,7 +13,6 @@ import { IStorageService, StorageScope } from 'vs/platform/storage/common/storag
|
|||
export interface IStorage {
|
||||
length: number;
|
||||
key(index: number): string;
|
||||
clear(): void;
|
||||
setItem(key: string, value: any): void;
|
||||
getItem(key: string): string;
|
||||
removeItem(key: string): void;
|
||||
|
@ -122,11 +121,6 @@ export class StorageService implements IStorageService {
|
|||
}
|
||||
}
|
||||
|
||||
public clear(): void {
|
||||
this._globalStorage.clear();
|
||||
this._workspaceStorage.clear();
|
||||
}
|
||||
|
||||
public store(key: string, value: any, scope = StorageScope.GLOBAL): void {
|
||||
const storage = (scope === StorageScope.GLOBAL) ? this._globalStorage : this._workspaceStorage;
|
||||
|
||||
|
|
|
@ -131,7 +131,6 @@ export class QuickOpenHandlerDescriptor {
|
|||
public prefix: string;
|
||||
public description: string;
|
||||
public contextKey: string;
|
||||
public isDefault: boolean;
|
||||
public helpEntries: QuickOpenHandlerHelpEntry[];
|
||||
public instantProgress: boolean;
|
||||
|
||||
|
@ -323,12 +322,6 @@ export interface ICommand {
|
|||
icon?: string;
|
||||
}
|
||||
|
||||
export interface ICommandQuickOpenHandlerOptions {
|
||||
prefix: string;
|
||||
commands: ICommand[];
|
||||
defaultCommand?: ICommand;
|
||||
}
|
||||
|
||||
export class QuickOpenAction extends Action {
|
||||
private prefix: string;
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
import { TPromise } from 'vs/base/common/winjs.base';
|
||||
import { Registry } from 'vs/platform/registry/common/platform';
|
||||
import { IAction } from 'vs/base/common/actions';
|
||||
import { KeybindingsRegistry } from 'vs/platform/keybinding/common/keybindingsRegistry';
|
||||
import { ICommandHandler, CommandsRegistry } from 'vs/platform/commands/common/commands';
|
||||
import { SyncActionDescriptor, MenuRegistry, MenuId } from 'vs/platform/actions/common/actions';
|
||||
|
@ -20,10 +19,6 @@ export const Extensions = {
|
|||
WorkbenchActions: 'workbench.contributions.actions'
|
||||
};
|
||||
|
||||
export interface IActionProvider {
|
||||
getActions(): IAction[];
|
||||
}
|
||||
|
||||
export interface IWorkbenchActionRegistry {
|
||||
|
||||
/**
|
||||
|
|
|
@ -275,7 +275,7 @@ export interface IEditorOpeningEvent {
|
|||
prevent(callback: () => TPromise<IBaseEditor>): void;
|
||||
}
|
||||
|
||||
export class EditorOpeningEvent {
|
||||
export class EditorOpeningEvent implements IEditorOpeningEvent {
|
||||
private override: () => TPromise<IBaseEditor>;
|
||||
|
||||
constructor(private _input: IEditorInput, private _options: IEditorOptions, private _position: Position) {
|
||||
|
|
|
@ -825,10 +825,6 @@ export class ImportFileAction extends BaseFileAction {
|
|||
this._updateEnablement();
|
||||
}
|
||||
|
||||
public getViewer(): ITree {
|
||||
return this.tree;
|
||||
}
|
||||
|
||||
public run(resources: URI[]): TPromise<any> {
|
||||
const importPromise = TPromise.as(null).then(() => {
|
||||
if (resources && resources.length > 0) {
|
||||
|
|
|
@ -15,9 +15,4 @@ export interface IWatcherRequest {
|
|||
export interface IWatcherService {
|
||||
initialize(verboseLogging: boolean): TPromise<void>;
|
||||
setRoots(roots: IWatcherRequest[]): TPromise<void>;
|
||||
}
|
||||
|
||||
export interface IFileWatcher {
|
||||
startWatching(): () => void;
|
||||
addFolder(folder: string): void;
|
||||
}
|
|
@ -12,7 +12,6 @@ import { onUnexpectedError } from 'vs/base/common/errors';
|
|||
import { guessMimeTypes } from 'vs/base/common/mime';
|
||||
import { toErrorMessage } from 'vs/base/common/errorMessage';
|
||||
import URI from 'vs/base/common/uri';
|
||||
// import * as assert from 'vs/base/common/assert';
|
||||
import { IDisposable, dispose } from 'vs/base/common/lifecycle';
|
||||
import paths = require('vs/base/common/paths');
|
||||
import diagnostics = require('vs/base/common/diagnostics');
|
||||
|
@ -39,8 +38,6 @@ import { IHashService } from 'vs/workbench/services/hash/common/hashService';
|
|||
*/
|
||||
export class TextFileEditorModel extends BaseTextEditorModel implements ITextFileEditorModel {
|
||||
|
||||
public static ID = 'workbench.editors.files.textFileEditorModel';
|
||||
|
||||
public static DEFAULT_CONTENT_CHANGE_BUFFER_DELAY = CONTENT_CHANGE_EVENT_BUFFER_DELAY;
|
||||
public static DEFAULT_ORPHANED_CHANGE_BUFFER_DELAY = 100;
|
||||
|
||||
|
|
Loading…
Reference in a new issue