Skip to content

Commit

Permalink
Merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamescaper committed Jun 8, 2022
2 parents 8d416f2 + c83aa57 commit 545c6df
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ public void SetParent(object parentElement)
_parent = (TElementType)parentElement;
}

public void Remove()
{
// Because this Handler is used internally only, this method is no-op.
}

void IMauiContainerElementHandler.AddChild(MC.Element child, int physicalSiblingIndex)
{
_setPropertyAction(_parent, child);
Expand Down Expand Up @@ -58,5 +53,9 @@ void IMauiElementHandler.SetParent(MC.Element parent)
// in this class should get called.
throw new NotSupportedException();
}

void INonPhysicalChild.Remove()
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ public void SetParent(object parentElement)
_setPropertyAction(parent, dataTemplate);
}

public void Remove()
{
// Because this Handler is used internally only, this method is no-op.
}

// Because this is a 'fake' element, all matters related to physical trees
// should be no-ops.

Expand All @@ -55,5 +50,9 @@ void IMauiElementHandler.SetParent(MC.Element parent)
// in this class should get called.
throw new NotSupportedException();
}

void INonPhysicalChild.Remove()
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ public void SetParent(object parentElement)
_propertyItems = _listPropertyAccessor((TElementType)parentElement);
}

public void Remove()
{
// Because this Handler is used internally only, this method is no-op.
}

void IMauiContainerElementHandler.AddChild(MC.Element child, int physicalSiblingIndex)
{
if (!(child is TItemType typedChild))
Expand Down Expand Up @@ -64,5 +59,9 @@ void IMauiElementHandler.SetParent(MC.Element parent)
// in this class should get called.
throw new NotSupportedException();
}

void INonPhysicalChild.Remove()
{
}
}
}

0 comments on commit 545c6df

Please sign in to comment.