Skip to content

Commit 302565d

Browse files
committed
Remove unused code.
1 parent 7fedac2 commit 302565d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Generator/Utils/BlockGenerator.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public class Block : ITextGenerator
6565
public List<Block> Blocks { get; set; }
6666

6767
private bool hasIndentChanged;
68-
private bool isSubBlock;
6968

7069
public Func<bool> CheckGenerate;
7170

@@ -80,15 +79,14 @@ public Block(BlockKind kind)
8079
Blocks = new List<Block>();
8180
Text = new TextGenerator();
8281
hasIndentChanged = false;
83-
isSubBlock = false;
8482
}
8583

8684
public void AddBlock(Block block)
8785
{
8886
if (Text.StringBuilder.Length != 0 || hasIndentChanged)
8987
{
9088
hasIndentChanged = false;
91-
var newBlock = new Block { Text = Text.Clone(), isSubBlock = true };
89+
var newBlock = new Block { Text = Text.Clone() };
9290
Text.StringBuilder.Clear();
9391

9492
AddBlock(newBlock);

0 commit comments

Comments
 (0)