summaryrefslogtreecommitdiff
path: root/new/uipriv_darwin.h
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/uipriv_darwin.h
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/uipriv_darwin.h')
-rw-r--r--new/uipriv_darwin.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/new/uipriv_darwin.h b/new/uipriv_darwin.h
index 5e8c82e..effffb3 100644
--- a/new/uipriv_darwin.h
+++ b/new/uipriv_darwin.h
@@ -39,17 +39,6 @@ struct uiSizing {
// util_darwin.m
extern void setStandardControlFont(NSControl *);
-@protocol uiFreeOnDealloc
-- (void)uiFreeOnDealloc:(void *)p;
-@end
-#define uiFreeOnDeallocImpl \
-- (void)uiFreeOnDealloc:(void *)p \
-{ \
- if (self.uiFreeList == nil) \
- self.uiFreeList = [NSMutableArray new]; \
- [self.uiFreeList addObject:[NSValue valueWIthPointer:p]]; \
-}
-extern void uiDoFreeOnDealloc(NSMutableArray *);
// container_darwin.m
@interface uiContainer : NSView