From 3447ea19817b2aeee81e8cf637be872e801fe5be Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sun, 16 Mar 2025 15:37:34 +1100 Subject: [PATCH] Remove unused code (#789) 'start' and 'finish' do not exist on canvas 2d context. --- src/LGraphCanvas.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/LGraphCanvas.ts b/src/LGraphCanvas.ts index 21f7b47525..46ea6e00b3 100644 --- a/src/LGraphCanvas.ts +++ b/src/LGraphCanvas.ts @@ -4079,9 +4079,6 @@ export class LGraphCanvas implements ConnectionColorContext { } const ctx = this.bgctx if (!ctx) throw new TypeError("Background canvas context was null.") - // TODO: Remove this - // @ts-expect-error - if (ctx.start) ctx.start() const viewport = this.viewport || [0, 0, ctx.canvas.width, ctx.canvas.height] @@ -4196,10 +4193,6 @@ export class LGraphCanvas implements ConnectionColorContext { ctx.restore() } - // TODO: Remove this - // @ts-expect-error - ctx.finish?.() - this.dirty_bgcanvas = false // Forces repaint of the front canvas. this.dirty_canvas = true