From 60486934236614aac6cf023d85b878d775cb58f5 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Mon, 13 Jan 2025 12:12:43 +0800 Subject: [PATCH] ssa: remove unused funcs --- compiler/ssa/abi/abi.go | 5 ----- compiler/ssa/python.go | 6 ------ 2 files changed, 11 deletions(-) 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())