mirror of
https://github.com/microsoft/vscode.git
synced 2026-07-15 00:14:20 +01:00
Remove unused code
This commit is contained in:
@@ -113,31 +113,6 @@ export class LineTokens {
|
||||
return this._textLength;
|
||||
}
|
||||
|
||||
public equals(other: LineTokens): boolean {
|
||||
if (!(other instanceof LineTokens)) {
|
||||
return false;
|
||||
}
|
||||
if (this._text !== other._text) {
|
||||
return false;
|
||||
}
|
||||
if (this._map !== other._map) {
|
||||
return false;
|
||||
}
|
||||
if (!ModeTransition.equals(this.modeTransitions, other.modeTransitions)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (this._tokens.length !== other._tokens.length) {
|
||||
return false;
|
||||
}
|
||||
for (let i = 0, len = this._tokens.length; i < len; i++) {
|
||||
if (this._tokens[i] !== other._tokens[i]) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Find the token containing offset `offset`.
|
||||
* For example, with the following tokens [0, 5), [5, 9), [9, infinity)
|
||||
|
||||
@@ -21,7 +21,6 @@ export interface IDocComment {
|
||||
|
||||
export interface IBracketElectricCharacterContribution {
|
||||
docComment?: IDocComment;
|
||||
embeddedElectricCharacters?: string[];
|
||||
}
|
||||
|
||||
export class BracketElectricCharacterSupport {
|
||||
@@ -35,9 +34,6 @@ export class BracketElectricCharacterSupport {
|
||||
}
|
||||
|
||||
public getElectricCharacters(): string[] {
|
||||
if (Array.isArray(this.contribution.embeddedElectricCharacters)) {
|
||||
return this.contribution.embeddedElectricCharacters.concat(this.brackets.getElectricCharacters());
|
||||
}
|
||||
return this.brackets.getElectricCharacters();
|
||||
}
|
||||
|
||||
|
||||
Vendored
-1
@@ -4173,7 +4173,6 @@ declare module monaco.languages {
|
||||
|
||||
export interface IBracketElectricCharacterContribution {
|
||||
docComment?: IDocComment;
|
||||
embeddedElectricCharacters?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user