Skip to content

Commit

Permalink
Remove debug assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Jul 12, 2022
1 parent 25abe36 commit a3cae65
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ namespace Gratt
{
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using Unit = System.ValueTuple;

Expand Down Expand Up @@ -564,7 +563,6 @@ public override bool TryPop(ref Store store, [MaybeNullWhen(false)] out T item)
public override ITokenStream<T> Grow(Store store, IEnumerator<T> enumerator)
{
var stream = Create(enumerator, MultiTokenStackOps<T>.Instance);
Debug.Assert(store.Count == CountOf2.Two);
var (first, second) = (Pop(ref store), Pop(ref store));
stream.Unread(second);
stream.Unread(first);
Expand Down

0 comments on commit a3cae65

Please sign in to comment.