Removed areaPrefSize() from the Mac OS X backend; we now store the Area's size separately and return that for the preferred size instead.

This commit is contained in:
Pietro Gagliardi 2014-08-06 11:01:37 -04:00
parent d307848c8c
commit e1c3a9fe26
2 changed files with 0 additions and 18 deletions

View File

@ -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);

View File

@ -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;