Remove unused code

This commit is contained in:
Alex Dima
2016-11-01 12:22:36 +01:00
parent 7f438ed3c0
commit a2a5afcaae
3 changed files with 0 additions and 30 deletions
-25
View File
@@ -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();
}
-1
View File
@@ -4173,7 +4173,6 @@ declare module monaco.languages {
export interface IBracketElectricCharacterContribution {
docComment?: IDocComment;
embeddedElectricCharacters?: string[];
}
/**