From a33811a57b64f62fb786c88d9da29a6275c8eca8 Mon Sep 17 00:00:00 2001 From: "Randall C. O'Reilly" Date: Mon, 19 Aug 2024 01:53:08 -0700 Subject: [PATCH] remove special web stuff that was unnecessary once certain other things were fixed.. --- core/render.go | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/core/render.go b/core/render.go index 94d2606216..54dcdf6268 100644 --- a/core/render.go +++ b/core/render.go @@ -19,7 +19,6 @@ import ( "cogentcore.org/core/colors/cam/hct" "cogentcore.org/core/math32" "cogentcore.org/core/styles" - "cogentcore.org/core/system" "cogentcore.org/core/tree" ) @@ -27,9 +26,6 @@ import ( // outside of the main configuration, rendering, and event handling structure. // It must have a matching [WidgetBase.AsyncUnlock] after it. func (wb *WidgetBase) AsyncLock() { - if TheApp.Platform() == system.Web { - return - } rc := wb.Scene.renderContext() if rc == nil { // if there is no render context, we are probably @@ -48,9 +44,6 @@ func (wb *WidgetBase) AsyncLock() { // outside of the main configuration, rendering, and event handling structure. // It must have a matching [WidgetBase.AsyncLock] before it. func (wb *WidgetBase) AsyncUnlock() { - if TheApp.Platform() == system.Web { - return - } rc := wb.Scene.renderContext() if rc == nil { return @@ -61,21 +54,6 @@ func (wb *WidgetBase) AsyncUnlock() { } } -// RenderUpdateWindow updates the window. -// It should not be called by end users. -// TODO(wgpu): remove. -func (sc *Scene) RenderUpdateWindow() { - // todo: get events - w := sc.RenderWindow() - if w == nil { - return - } - rc := w.renderContext() - rc.unlock() - w.renderWindow() // todo: this doesn't end up actually updating the drawer window.. - rc.lock() -} - // NeedsRender specifies that the widget needs to be rendered. func (wb *WidgetBase) NeedsRender() { if DebugSettings.UpdateTrace {