Skip to content

Commit 92e6abf

Browse files
robertgoss-workmartinweismann
authored andcommitted
Remove unused method
1 parent 4960981 commit 92e6abf

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Source/buildbindingpython.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -391,26 +391,6 @@ func buildDynamicPythonImplementation(componentdefinition ComponentDefinition, w
391391
return nil
392392
}
393393

394-
395-
func generateCTypeParemeters(method ComponentDefinitionMethod, w LanguageWriter, NameSpace string, ClassName string, isGlobal bool)([]ctypesParameter, error) {
396-
parameters := []ctypesParameter{}
397-
if (!isGlobal) {
398-
cParams := make([]ctypesParameter,1)
399-
cParams[0].ParamName = "Object"
400-
cParams[0].ParamType = "ctypes.c_void_p"
401-
cParams[0].ParamComment = "#"
402-
parameters = append(parameters, cParams...);
403-
}
404-
for k:=0; k<len(method.Params); k++ {
405-
cParams, err := generateCTypesParameter(method.Params[k], ClassName, method.MethodName, NameSpace)
406-
if (err != nil) {
407-
return nil, err
408-
}
409-
parameters = append(parameters, cParams...);
410-
}
411-
return parameters, nil
412-
}
413-
414394
func writeCDLLFunctionTableMethod(method ComponentDefinitionMethod, w LanguageWriter, NameSpace string, ClassName string, isGlobal bool) error {
415395
exportName := GetCExportName(NameSpace, ClassName, method, isGlobal)
416396
w.Writeln(" self.lib.%s.restype = ctypes.c_int32", exportName)

0 commit comments

Comments
 (0)