Skip to content

Commit

Permalink
Simplify RequestState handling
Browse files Browse the repository at this point in the history
References #8
  • Loading branch information
andreashuber-lawo committed Jan 6, 2016
1 parent e45bf10 commit 9ae2c8d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Lawo.EmberPlusSharp/Model/NodeBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,9 @@ private void ReadChild(EmberReader reader, ElementType actualType, int number)
var childRequestState = RequestState.Complete;
Element child;
this.children.TryGetValue(number, out child);
var isEmpty = true;

while (reader.Read() && (reader.InnerNumber != InnerNumber.EndContainer))
{
isEmpty = false;
var contextSpecificOuterNumber = reader.GetContextSpecificOuterNumber();

if (contextSpecificOuterNumber == GlowNode.Contents.OuterNumber)
Expand Down Expand Up @@ -299,11 +297,6 @@ private void ReadChild(EmberReader reader, ElementType actualType, int number)

if (child != null)
{
if (isEmpty)
{
childRequestState = RequestState.Complete;
}

child.RequestState = childRequestState;
}

Expand Down

0 comments on commit 9ae2c8d

Please sign in to comment.