Remove unused code (#789)

'start' and 'finish' do not exist on canvas 2d context.
This commit is contained in:
filtered
2025-03-16 15:37:34 +11:00
committed by GitHub
parent 9b16144390
commit 3447ea1981

View File

@@ -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