diff --git a/cdt/cdt.go b/cdt/cdt.go index d0e8533..195f58a 100644 --- a/cdt/cdt.go +++ b/cdt/cdt.go @@ -52,10 +52,6 @@ func (l *Link) getWasm() *wasm.DictLink { return l.wasm } -func toDictLinkWasm(v *Link) *wasm.DictLink { - return v.wasm -} - type Method struct { wasm *wasm.DictMethod } diff --git a/cgraph/cgraph.go b/cgraph/cgraph.go index 591cb80..6959802 100644 --- a/cgraph/cgraph.go +++ b/cgraph/cgraph.go @@ -20,13 +20,6 @@ func toGraph(v *wasm.Graph) *Graph { return &Graph{wasm: v} } -func toGraphWasm(v *Graph) *wasm.Graph { - if v == nil { - return nil - } - return v.wasm -} - func (g *Graph) getWasm() *wasm.Graph { if g == nil { return nil diff --git a/cgraph/link.go b/cgraph/link.go index 305e860..b3f674a 100644 --- a/cgraph/link.go +++ b/cgraph/link.go @@ -16,5 +16,12 @@ func toDictWasm(*cdt.Dict) *wasm.Dict //go:linkname toDictLink github.com/goccy/go-graphviz/cdt.toLink func toDictLink(*wasm.DictLink) *cdt.Link -//go:linkname toDictLinkWasm github.com/goccy/go-graphviz/cdt.toDictLinkWasm +//go:linkname toDictLinkWasm github.com/goccy/go-graphviz/cdt.toLinkWasm func toDictLinkWasm(*cdt.Link) *wasm.DictLink + +func toGraphWasm(v *Graph) *wasm.Graph { + if v == nil { + return nil + } + return v.wasm +}