Skip to content

Commit

Permalink
codegen: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Sep 3, 2023
1 parent 482751e commit 5a51446
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions generate/codegen/gen_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,6 @@ func (f *Function) String() string {
return f.Selector()
}

// NormalizeInstanceTypeFunction return new init function.
func (f *Function) NormalizeInstanceTypeFunction(returnType *typing.ClassType) *Function {
nm := &Function{
Name: f.Name,
GoName: f.GoName,
Parameters: f.Parameters,
ReturnType: returnType,
goFuncName: f.goFuncName,
Suffix: f.Suffix,
}
return nm
}

// WriteGoCallCode generate go function code to call c wrapper code
func (f *Function) WriteGoCallCode(currentModule *modules.Module, cw *CodeWriter) {
funcDeclare := f.GoFuncDeclare(currentModule)
Expand Down

0 comments on commit 5a51446

Please sign in to comment.