Browse Source

Remove unused code.

typeloc_clang
Joao Matos 8 years ago committed by João Matos
parent
commit
302565dc8e
  1. 4
      src/Generator/Utils/BlockGenerator.cs

4
src/Generator/Utils/BlockGenerator.cs

@ -65,7 +65,6 @@ namespace CppSharp
public List<Block> Blocks { get; set; } public List<Block> Blocks { get; set; }
private bool hasIndentChanged; private bool hasIndentChanged;
private bool isSubBlock;
public Func<bool> CheckGenerate; public Func<bool> CheckGenerate;
@ -80,7 +79,6 @@ namespace CppSharp
Blocks = new List<Block>(); Blocks = new List<Block>();
Text = new TextGenerator(); Text = new TextGenerator();
hasIndentChanged = false; hasIndentChanged = false;
isSubBlock = false;
} }
public void AddBlock(Block block) public void AddBlock(Block block)
@ -88,7 +86,7 @@ namespace CppSharp
if (Text.StringBuilder.Length != 0 || hasIndentChanged) if (Text.StringBuilder.Length != 0 || hasIndentChanged)
{ {
hasIndentChanged = false; hasIndentChanged = false;
var newBlock = new Block { Text = Text.Clone(), isSubBlock = true }; var newBlock = new Block { Text = Text.Clone() };
Text.StringBuilder.Clear(); Text.StringBuilder.Clear();
AddBlock(newBlock); AddBlock(newBlock);

Loading…
Cancel
Save