Skip to content

Commit e18ebff

Browse files
committed
Remove some additional unused locals and write only members
1 parent 512803f commit e18ebff

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

src/vs/base/common/diff/diff2.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ export class LcsDiff2 {
5757
private ids_for_x: number[];
5858
private ids_for_y: number[];
5959

60-
// @ts-ignore unused property
61-
private hashFunc: IHashFunction;
62-
6360
private resultX: boolean[];
6461
private resultY: boolean[];
6562
private forwardPrev: number[];
@@ -73,14 +70,6 @@ export class LcsDiff2 {
7370
this.ids_for_x = [];
7471
this.ids_for_y = [];
7572

76-
if (hashFunc) {
77-
this.hashFunc = hashFunc;
78-
} else {
79-
this.hashFunc = function (sequence, index) {
80-
return sequence[index];
81-
};
82-
}
83-
8473
this.resultX = [];
8574
this.resultY = [];
8675
this.forwardPrev = [];

src/vs/editor/common/viewLayout/viewLineRenderer.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -618,22 +618,17 @@ function _renderLine(input: ResolvedRenderLineInput, sb: IStringBuilder): Render
618618
{
619619
let _charIndex = charIndex;
620620
let _tabsCharDelta = tabsCharDelta;
621-
// @ts-ignore unused local
622-
let _charOffsetInPart = charOffsetInPart;
623621

624622
for (; _charIndex < partEndIndex; _charIndex++) {
625623
const charCode = lineContent.charCodeAt(_charIndex);
626624

627625
if (charCode === CharCode.Tab) {
628626
let insertSpacesCount = tabSize - (_charIndex + _tabsCharDelta) % tabSize;
629627
_tabsCharDelta += insertSpacesCount - 1;
630-
_charOffsetInPart += insertSpacesCount - 1;
631628
partContentCnt += insertSpacesCount;
632629
} else {
633630
partContentCnt++;
634631
}
635-
636-
_charOffsetInPart++;
637632
}
638633
}
639634

0 commit comments

Comments
 (0)