Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions scripting/internal/url/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package url

import (
"fmt"
"runtime/cgo"

"github.com/gost-dom/browser/html"
"github.com/gost-dom/browser/internal/constants"
Expand All @@ -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,
Expand Down