Skip to content

Commit 3e3f0ad

Browse files
committed
tests: let START_SET manage the autorelease pool
START_SET creates an autorelease pool and END_SET releases it, so the pool these tests create around the set is redundant.
1 parent a726d76 commit 3e3f0ad

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

Tests/gui/NSDatePicker/display.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
int
3131
main(int argc, char **argv)
3232
{
33-
CREATE_AUTORELEASE_POOL(arp);
3433
NSDatePicker *dp;
3534
NSString *text;
3635
NSString *american;
@@ -120,6 +119,5 @@
120119

121120
END_SET("NSDatePicker display")
122121

123-
DESTROY(arp);
124122
return 0;
125123
}

Tests/gui/NSDatePicker/keyboard.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ - (void) datePickerCell: (NSDatePickerCell *)cell
101101
int
102102
main(int argc, char **argv)
103103
{
104-
CREATE_AUTORELEASE_POOL(arp);
105104
NSDatePicker *dp;
106105
NSDatePickerElementFlags all;
107106
BOOL generator;
@@ -285,6 +284,5 @@ - (void) datePickerCell: (NSDatePickerCell *)cell
285284

286285
END_SET("NSDatePicker keyboard")
287286

288-
DESTROY(arp);
289287
return 0;
290288
}

Tests/gui/NSDatePicker/selection.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
int
7878
main(int argc, char **argv)
7979
{
80-
CREATE_AUTORELEASE_POOL(arp);
8180
NSWindow *window;
8281
NSDatePicker *dp;
8382
NSString *text;
@@ -151,6 +150,5 @@
151150

152151
END_SET("NSDatePicker selection")
153152

154-
DESTROY(arp);
155153
return 0;
156154
}

0 commit comments

Comments
 (0)