From e4f157d9cdbdf238354f2859a5882f549f78b5d8 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 30 Jun 2018 12:34:40 +0900 Subject: [PATCH] opengl: Remove unused code --- internal/opengl/context_js.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/internal/opengl/context_js.go b/internal/opengl/context_js.go index d70c1df95..cba7cd3b4 100644 --- a/internal/opengl/context_js.go +++ b/internal/opengl/context_js.go @@ -138,12 +138,7 @@ func Init() error { // Getting an extension might fail after the context is lost, so // it is required to get the extension here. c.loseContext = gl.Call("getExtension", "WEBGL_lose_context") - if c.loseContext != js.Null() { - // This testing function name is temporary. - js.Global().Set("_ebiten_loseContextForTesting", js.NewCallback(func([]js.Value) { - c.loseContext.Call("loseContext") - })) - } + theContext = c return nil }