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

Loading…
Cancel
Save