Skip to content

Commit 009a114

Browse files
committed
codegen: cleanup
1 parent dbdbd55 commit 009a114

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

generate/codegen/gen_function.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -81,19 +81,6 @@ func (f *Function) String() string {
8181
return f.Selector()
8282
}
8383

84-
// NormalizeInstanceTypeFunction return new init function.
85-
func (f *Function) NormalizeInstanceTypeFunction(returnType *typing.ClassType) *Function {
86-
nm := &Function{
87-
Name: f.Name,
88-
GoName: f.GoName,
89-
Parameters: f.Parameters,
90-
ReturnType: returnType,
91-
goFuncName: f.goFuncName,
92-
Suffix: f.Suffix,
93-
}
94-
return nm
95-
}
96-
9784
// WriteGoCallCode generate go function code to call c wrapper code
9885
func (f *Function) WriteGoCallCode(currentModule *modules.Module, cw *CodeWriter) {
9986
funcDeclare := f.GoFuncDeclare(currentModule)

0 commit comments

Comments
 (0)