summaryrefslogtreecommitdiff
path: root/new/util_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-08 04:35:50 -0400
committerPietro Gagliardi <[email protected]>2015-04-08 04:35:50 -0400
commit941825e1902d7ccdea93ad21f518a8c60ce271b2 (patch)
tree81f39bf8afab350e6a002a1e655774e387f20bb5 /new/util_darwin.m
parent4ab6251449b4c88869b12514f67c8731ab14c93c (diff)
Cleaned out some of that gunk. I can't avoid subclassing the standard controls, but making it so that the uiControl returned by uiDarwinNewControl() can be freed by the caller will help.
Diffstat (limited to 'new/util_darwin.m')
-rw-r--r--new/util_darwin.m10
1 files changed, 0 insertions, 10 deletions
diff --git a/new/util_darwin.m b/new/util_darwin.m
index 4ed562a..d8166e9 100644
--- a/new/util_darwin.m
+++ b/new/util_darwin.m
@@ -6,13 +6,3 @@ void setStandardControlFont(NSControl *control)
{
[control setFont:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:NSRegularControlSize]]];
}
-
-void uiDoFreeOnDealloc(NSMutableArray *m)
-{
- [m enumerateObjectsUsingBlock:^(id obj, NSUInteger index, BOOL *stop) {
- NSValue *v = (NSValue *) obj;
-
- uiFree([v pointerValue]);
- }];
- [m release];
-}