Browse Source

Remove the useless GeneratePInvokeMethod method.

pull/1/head
triton 12 years ago
parent
commit
8237110115
  1. 13
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

13
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -306,9 +306,7 @@ namespace CppSharp.Generators.CSharp @@ -306,9 +306,7 @@ namespace CppSharp.Generators.CSharp
continue;
NewLineIfNeeded();
GeneratePInvokeMethod(ctor, @class);
NeedNewLine();
GenerateFunction(ctor, @class);
}
foreach (var method in @class.Methods)
@ -323,9 +321,7 @@ namespace CppSharp.Generators.CSharp @@ -323,9 +321,7 @@ namespace CppSharp.Generators.CSharp
continue;
NewLineIfNeeded();
GeneratePInvokeMethod(method, @class);
NeedNewLine();
GenerateFunction(method, @class);
}
WriteCloseBraceIndent();
@ -334,11 +330,6 @@ namespace CppSharp.Generators.CSharp @@ -334,11 +330,6 @@ namespace CppSharp.Generators.CSharp
typePrinter.PopContext();
}
private void GeneratePInvokeMethod(Method method, Class @class)
{
GenerateFunction(method, @class);
}
private void GenerateStructMarshaling(Class @class)
{
GenerateStructMarshalingFields(@class);

Loading…
Cancel
Save