Skip to content

Commit 7582749

Browse files
committed
removed unused private code that appears to only have been during development
1 parent c915d09 commit 7582749

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

ScrollableStackView/Classes/ScrollableStackView.swift

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -71,34 +71,6 @@ public class ScrollableStackView: UIView {
7171
}
7272
}
7373

74-
func addItemToStack() {
75-
let random = CGFloat(arc4random_uniform(131) + 30) // between 30-130
76-
let rectangle = UIView(frame: CGRect(x: 0, y: 0, width: random, height: random))
77-
rectangle.backgroundColor = UIColor(red: CGFloat(drand48()), green: CGFloat(drand48()), blue: CGFloat(drand48()), alpha: 1.0)
78-
rectangle.heightAnchor.constraint(equalToConstant: random).isActive = true
79-
80-
UIView.animate(withDuration: 0.25, animations: {
81-
self.stackView.addArrangedSubview(rectangle)
82-
}) { (isDone) in
83-
if(isDone) {
84-
self.scrollView.scrollToBottom(true)
85-
}
86-
}
87-
}
88-
89-
func removeItemFromStack() {
90-
UIView.animate(withDuration: 0.25, animations: {
91-
if let last = self.stackView.arrangedSubviews.last {
92-
self.stackView.removeArrangedSubview(last)
93-
}
94-
}) { (isDone) in
95-
if(isDone) {
96-
self.scrollView.scrollToBottom(true)
97-
}
98-
}
99-
}
100-
101-
// Auto Layout
10274
override public func updateConstraints() {
10375
super.updateConstraints()
10476

0 commit comments

Comments
 (0)