ssa: remove unused funcs
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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())
|
||||||
|
|||||||
Reference in New Issue
Block a user