ssa: remove unused funcs

This commit is contained in:
Li Jie
2025-01-13 12:12:43 +08:00
parent a7287754be
commit 6048693423
2 changed files with 0 additions and 11 deletions

View File

@@ -237,11 +237,6 @@ func FullName(pkg *types.Package, name string) string {
return PathOf(pkg) + "." + name 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. // BasicName returns the ABI type name for the specified basic type.
func BasicName(t *types.Basic) string { func BasicName(t *types.Basic) string {
return "_llgo_" + t.Name() return "_llgo_" + t.Name()

View File

@@ -375,12 +375,6 @@ func (b Builder) PyFloat(fltVal Expr) (ret Expr) {
return b.Call(fn, fltVal) 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. // PyStr returns a py-style string constant expression.
func (b Builder) PyStr(v string) Expr { func (b Builder) PyStr(v string) Expr {
fn := b.Pkg.pyFunc("PyUnicode_FromString", b.Prog.tyPyUnicodeFromString()) fn := b.Pkg.pyFunc("PyUnicode_FromString", b.Prog.tyPyUnicodeFromString())