Browse Source

Remove some dead code.

pull/1328/head
João Matos 6 years ago committed by João Matos
parent
commit
060432c2d9
  1. 4
      src/Generator/Generators/C/CppSources.cs

4
src/Generator/Generators/C/CppSources.cs

@ -238,7 +238,6 @@ namespace CppSharp.Generators.Cpp
{ {
PushBlock(BlockKind.Method, method); PushBlock(BlockKind.Method, method);
var property = method.AssociatedDeclaration as Property;
GeneratePropertyAccessorSpecifier(method); GeneratePropertyAccessorSpecifier(method);
NewLine(); NewLine();
@ -256,7 +255,6 @@ namespace CppSharp.Generators.Cpp
{ {
PushBlock(BlockKind.Method, method); PushBlock(BlockKind.Method, method);
var property = method.AssociatedDeclaration as Property;
GeneratePropertyAccessorSpecifier(method); GeneratePropertyAccessorSpecifier(method);
NewLine(); NewLine();
@ -507,8 +505,6 @@ namespace CppSharp.Generators.Cpp
if (needsReturn) if (needsReturn)
{ {
var retTypeName = function.ReturnType.Visit(CTypePrinter).ToString();
var ctx = new MarshalContext(Context, CurrentIndentation) var ctx = new MarshalContext(Context, CurrentIndentation)
{ {
ArgName = Helpers.ReturnIdentifier, ArgName = Helpers.ReturnIdentifier,

Loading…
Cancel
Save