Remove unused code
This commit is contained in:
parent
47fff291bb
commit
61deb56218
|
@ -210,12 +210,6 @@ export interface IMode {
|
|||
*/
|
||||
tokenizationSupport?: ITokenizationSupport;
|
||||
|
||||
/**
|
||||
* Optional adapter to support inplace-replace.
|
||||
* @internal
|
||||
*/
|
||||
inplaceReplaceSupport?:IInplaceReplaceSupport;
|
||||
|
||||
/**
|
||||
* Optional adapter to support configuring this mode.
|
||||
* @internal
|
||||
|
@ -810,14 +804,6 @@ export interface IInplaceReplaceSupportResult {
|
|||
range:editorCommon.IRange;
|
||||
}
|
||||
|
||||
/**
|
||||
* Interface used to navigate with a value-set.
|
||||
* @internal
|
||||
*/
|
||||
export interface IInplaceReplaceSupport {
|
||||
navigateValueSet(resource:URI, range:editorCommon.IRange, up:boolean):TPromise<IInplaceReplaceSupportResult>;
|
||||
}
|
||||
|
||||
/**
|
||||
* A link inside the editor.
|
||||
*/
|
||||
|
|
|
@ -59,7 +59,6 @@ class InPlaceReplaceController implements IEditorContribution {
|
|||
|
||||
var selection = this.editor.getSelection(),
|
||||
model = this.editor.getModel(),
|
||||
support = model.getMode().inplaceReplaceSupport,
|
||||
modelURI = model.uri;
|
||||
|
||||
if(selection.startLineNumber !== selection.endLineNumber) {
|
||||
|
@ -74,11 +73,6 @@ class InPlaceReplaceController implements IEditorContribution {
|
|||
if (basicResult && basicResult.range && basicResult.value) {
|
||||
return basicResult;
|
||||
}
|
||||
|
||||
if (support) {
|
||||
return support.navigateValueSet(modelURI, selection, up);
|
||||
}
|
||||
|
||||
return null;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue