From e1c3a9fe269df99e0a1b20b7723f20d5d995f122 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 6 Aug 2014 11:01:37 -0400 Subject: [PATCH] Removed areaPrefSize() from the Mac OS X backend; we now store the Area's size separately and return that for the preferred size instead. --- redo/objc_darwin.h | 1 - redo/xsizing_darwin.m | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/redo/objc_darwin.h b/redo/objc_darwin.h index 416c319..566e190 100644 --- a/redo/objc_darwin.h +++ b/redo/objc_darwin.h @@ -85,7 +85,6 @@ struct xalignment { }; extern struct xsize controlPrefSize(id); extern struct xsize tabPrefSize(id); -extern struct xsize areaPrefSize(id); extern struct xalignment alignmentInfo(id, struct xrect); extern struct xrect frame(id); diff --git a/redo/xsizing_darwin.m b/redo/xsizing_darwin.m index ec9001b..298a941 100644 --- a/redo/xsizing_darwin.m +++ b/redo/xsizing_darwin.m @@ -38,23 +38,6 @@ struct xsize tabPrefSize(id control) return t; } -// TODO use this, possibly update to not need scrollview -/* -struct xsize areaPrefSize(id scrollview) -{ - NSView *c; - NSRect r; - struct xsize s; - - c = areaInScrollView(toNSScrollView(scrollview)); - // don't size to fit; the frame size is already the size we want - r = [c frame]; - s.width = (intptr_t) r.size.width; - s.height = (intptr_t) r.size.height; - return s; -} -*/ - struct xalignment alignmentInfo(id c, struct xrect newrect) { NSView *v;