diff options
author | Jose Medrano <josmed@microsoft.com> | 2022-04-07 15:02:10 +0300 |
---|---|---|
committer | Jose Medrano <josmed@microsoft.com> | 2022-04-07 15:02:10 +0300 |
commit | 037e8e226f1060a97b2d485aab4eb18e81cc6160 (patch) | |
tree | 7ba756965dcc4963e545d3333335dfd532b7f5ff | |
parent | a2487a8cf5dd6446a78bf744b40b409cc345f03a (diff) |
Removes unnecessary un-assignment
-rw-r--r-- | Xwt.XamMac/Xwt.Mac/WindowFrameBackend.cs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Xwt.XamMac/Xwt.Mac/WindowFrameBackend.cs b/Xwt.XamMac/Xwt.Mac/WindowFrameBackend.cs index 86fc236e..d9d429a2 100644 --- a/Xwt.XamMac/Xwt.Mac/WindowFrameBackend.cs +++ b/Xwt.XamMac/Xwt.Mac/WindowFrameBackend.cs @@ -346,10 +346,6 @@ namespace Xwt.Mac if (Window.ParentWindow != null) Window.ParentWindow.RemoveChildWindow(Window); - // new parent has any associed window we remove it - if (nParent.ParentWindow != null) - nParent.ParentWindow.RemoveChildWindow(nParent); - Window.ParentWindow = nParent; TryAddChildWindowIfVisible(nParent, Window); |