delete unused code

This commit is contained in:
meganrogge
2022-03-08 21:35:31 -06:00
parent 89112fb1ae
commit 249e73cd25
+3 -14
View File
@@ -101,19 +101,9 @@ export class DecorationService extends Disposable implements IDecorationService
this._scrollbarDecorationCanvas = this._scrollbarDecorationNode.getContext('2d'); this._scrollbarDecorationCanvas = this._scrollbarDecorationNode.getContext('2d');
this._refreshScollbarDecorations(); this._refreshScollbarDecorations();
} }
this._scrollbarDecorationCanvas!.lineWidth = 1; const scrollbarDecoration = new ScrollbarDecoration({ marker, scrollbarDecorationColor: color }, this._scrollbarDecorationNode, this._scrollbarDecorationCanvas!, this._bufferService);
this._scrollbarDecorationCanvas!.strokeStyle = color; this._scrollDecorations.push(scrollbarDecoration);
this._scrollbarDecorationCanvas!.strokeRect( return scrollbarDecoration;
0,
this._scrollbarDecorationNode.height * (marker.line / this._bufferService.buffers.active.lines.length),
this._scrollbarDecorationNode.width,
window.devicePixelRatio
);
if (this._scrollbarDecorationNode) {
const scrollbarDecoration = new ScrollbarDecoration({ marker, scrollbarDecorationColor: color }, this._scrollbarDecorationNode, this._scrollbarDecorationCanvas!, this._viewportElement, this._bufferService);
this._scrollDecorations.push(scrollbarDecoration);
return scrollbarDecoration;
}
} }
private _refreshBufferDecorations(shouldRecreate?: boolean): void { private _refreshBufferDecorations(shouldRecreate?: boolean): void {
@@ -161,7 +151,6 @@ export class ScrollbarDecoration extends Disposable implements IDecoration {
options: IDecorationOptions, options: IDecorationOptions,
canvas: HTMLCanvasElement, canvas: HTMLCanvasElement,
private readonly _ctx: CanvasRenderingContext2D, private readonly _ctx: CanvasRenderingContext2D,
private readonly _viewport: HTMLElement,
private readonly _bufferService: IBufferService private readonly _bufferService: IBufferService
) { ) {
super(); super();