diff --git a/compiler/ssa/abi/abi.go b/compiler/ssa/abi/abi.go index 5f3f8062..c562fd29 100644 --- a/compiler/ssa/abi/abi.go +++ b/compiler/ssa/abi/abi.go @@ -237,11 +237,6 @@ func FullName(pkg *types.Package, name string) string { return PathOf(pkg) + "." + name } -// TypeName returns the ABI type name for the specified named type. -func TypeName(o *types.TypeName) string { - return FullName(o.Pkg(), o.Name()) -} - // BasicName returns the ABI type name for the specified basic type. func BasicName(t *types.Basic) string { return "_llgo_" + t.Name() diff --git a/compiler/ssa/python.go b/compiler/ssa/python.go index 01d4390b..def3c38e 100644 --- a/compiler/ssa/python.go +++ b/compiler/ssa/python.go @@ -375,12 +375,6 @@ func (b Builder) PyFloat(fltVal Expr) (ret Expr) { return b.Call(fn, fltVal) } -// callPyInit calls Py_Initialize. -func (b Builder) callPyInit() (ret Expr) { - fn := b.Pkg.pyFunc("Py_Initialize", NoArgsNoRet) - return b.Call(fn) -} - // PyStr returns a py-style string constant expression. func (b Builder) PyStr(v string) Expr { fn := b.Pkg.pyFunc("PyUnicode_FromString", b.Prog.tyPyUnicodeFromString())