mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-19 06:20:10 +00:00
Remove unused code (#789)
'start' and 'finish' do not exist on canvas 2d context.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user