diff --git a/scripting/internal/url/url.go b/scripting/internal/url/url.go index b8102188..79e0df09 100644 --- a/scripting/internal/url/url.go +++ b/scripting/internal/url/url.go @@ -2,7 +2,6 @@ package url import ( "fmt" - "runtime/cgo" "github.com/gost-dom/browser/html" "github.com/gost-dom/browser/internal/constants" @@ -18,10 +17,6 @@ func NewURL[T any](host js.ScriptEngine[T]) URL[T] { return URL[T]{} } -type handleDisposable cgo.Handle - -func (h handleDisposable) Dispose() { cgo.Handle(h).Delete() } - func CreateURL[T any]( cbCtx js.CallbackContext[T], u string,