Commit cb070075 by Daniel Dahan

removed unneeded calls to removeFromSuperview()

parent bd529fc2
......@@ -292,7 +292,6 @@ fileprivate extension ChipBar {
w += p
if scrollView != v.superview {
v.removeFromSuperview()
scrollView.addSubview(v)
}
}
......
......@@ -200,7 +200,6 @@ public struct Grid {
for v in views {
if canvas != v.superview {
v.removeFromSuperview()
canvas.addSubview(v)
}
}
......
......@@ -367,7 +367,6 @@ fileprivate extension TabBar {
w += p
if scrollView != v.superview {
v.removeFromSuperview()
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