Commit cb070075 by Daniel Dahan

removed unneeded calls to removeFromSuperview()

parent bd529fc2
...@@ -292,7 +292,6 @@ fileprivate extension ChipBar { ...@@ -292,7 +292,6 @@ fileprivate extension ChipBar {
w += p w += p
if scrollView != v.superview { if scrollView != v.superview {
v.removeFromSuperview()
scrollView.addSubview(v) scrollView.addSubview(v)
} }
} }
......
...@@ -200,7 +200,6 @@ public struct Grid { ...@@ -200,7 +200,6 @@ public struct Grid {
for v in views { for v in views {
if canvas != v.superview { if canvas != v.superview {
v.removeFromSuperview()
canvas.addSubview(v) canvas.addSubview(v)
} }
} }
......
...@@ -367,7 +367,6 @@ fileprivate extension TabBar { ...@@ -367,7 +367,6 @@ fileprivate extension TabBar {
w += p w += p
if scrollView != v.superview { if scrollView != v.superview {
v.removeFromSuperview()
scrollView.addSubview(v) scrollView.addSubview(v)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment