Skip to content

Commit

Permalink
Removes unnecessary -tearDown code. (TextureGroup#1822)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaclach authored and rcancro committed May 20, 2020
1 parent b8da530 commit a37efda
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Tests/ASCollectionViewTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,6 @@ - (void)setUp
[ASConfigurationManager test_resetWithConfiguration:config];
}

- (void)tearDown
{
// We can't prevent the system from retaining windows, but we can at least clear them out to avoid
// pollution between test cases.
for (UIWindow *window in [UIApplication sharedApplication].windows) {
for (UIView *subview in window.subviews) {
[subview removeFromSuperview];
}
}
[super tearDown];
}

- (void)testDataSourceImplementsNecessaryMethods
{
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
Expand Down

0 comments on commit a37efda

Please sign in to comment.