mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Clean unused member
This commit is contained in:
@@ -12,7 +12,7 @@ import { createSelectionRenderModel } from 'browser/renderer/shared/SelectionRen
|
||||
import { ICoreBrowserService, IThemeService } from 'browser/services/Services';
|
||||
import { ReadonlyColorSet } from 'browser/Types';
|
||||
import { CellData } from 'common/buffer/CellData';
|
||||
import { ExtFlags, WHITESPACE_CELL_CODE } from 'common/buffer/Constants';
|
||||
import { WHITESPACE_CELL_CODE } from 'common/buffer/Constants';
|
||||
import { IBufferService, IDecorationService, IOptionsService, IUnicodeService } from 'common/services/Services';
|
||||
import { ICellData, IDisposable } from 'common/Types';
|
||||
import { Terminal } from 'xterm';
|
||||
|
||||
@@ -17,7 +17,7 @@ import { Disposable, MutableDisposable, getDisposeArrayDisposable, toDisposable
|
||||
import { CharData, IBufferLine, ICellData } from 'common/Types';
|
||||
import { AttributeData } from 'common/buffer/AttributeData';
|
||||
import { CellData } from 'common/buffer/CellData';
|
||||
import { Attributes, Content, ExtFlags, NULL_CELL_CHAR, NULL_CELL_CODE, UnderlineStyle } from 'common/buffer/Constants';
|
||||
import { Attributes, Content, NULL_CELL_CHAR, NULL_CELL_CODE } from 'common/buffer/Constants';
|
||||
import { traceCall } from 'common/services/LogService';
|
||||
import { ICoreService, IDecorationService, IOptionsService, IUnicodeService } from 'common/services/Services';
|
||||
import { IDisposable, Terminal } from 'xterm';
|
||||
|
||||
@@ -14,7 +14,6 @@ let $hasFg = false;
|
||||
let $hasBg = false;
|
||||
let $isSelected = false;
|
||||
let $colors: ReadonlyColorSet | undefined;
|
||||
let $x = -1;
|
||||
let $y = -1;
|
||||
let $variantOffset = 0;
|
||||
|
||||
@@ -43,7 +42,7 @@ export class CellColorResolver {
|
||||
* Resolves colors for the cell, putting the result into the shared {@link result}. This resolves
|
||||
* overrides, inverse and selection for the cell which can then be used to feed into the renderer.
|
||||
*/
|
||||
public resolve(cell: ICellData, x: number, y: number,deviceCellWidth: number): void {
|
||||
public resolve(cell: ICellData, x: number, y: number, deviceCellWidth: number): void {
|
||||
this.result.bg = cell.bg;
|
||||
this.result.fg = cell.fg;
|
||||
this.result.ext = cell.bg & BgFlags.HAS_EXTENDED ? cell.extended.ext : 0;
|
||||
@@ -61,7 +60,6 @@ export class CellColorResolver {
|
||||
if ($y !== y) {
|
||||
$variantOffset = 0;
|
||||
}
|
||||
$x = x;
|
||||
$y = y;
|
||||
|
||||
const code = cell.getCode();
|
||||
|
||||
@@ -960,10 +960,6 @@ export class TextureAtlas implements ITextureAtlas {
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
public getDeviceCellWidth(): number {
|
||||
return this._config.deviceCellWidth;
|
||||
}
|
||||
}
|
||||
|
||||
class AtlasPage {
|
||||
|
||||
-2
@@ -103,8 +103,6 @@ export interface ITextureAtlas extends IDisposable {
|
||||
*/
|
||||
beginFrame(): boolean;
|
||||
|
||||
getDeviceCellWidth(): number;
|
||||
|
||||
/**
|
||||
* Clear all glyphs from the texture atlas.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user