-
Notifications
You must be signed in to change notification settings - Fork 48
Remove Legacy Layout #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Legacy Layout #475
Conversation
view.ensureLayoutPass() | ||
XCTAssertEqual(contextualMode, overrideMode) | ||
} | ||
// TODO: Decide what to do here. Can't test overrides w/ only one layout mode... |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Need to figure this out before merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some tests depend on turning this on/off to count measurements, so I decided to leave it in. Figure we can always remove it in a later iteration.
Let's talk about the strategy for this in January.
|
Do you mind enumerating concrete concerns to removing legacy layout? Eg:
|
I'm closing this out as it sounds like we want to do the removal different than done here. |
I took a swing at deleting the
Legacy
layout system, since it's no longer used, but is required to be implemented for newLayout
types. To do this, I:Layout
protocol.ContentStorage
protocol.legacy
LayoutMode
.Layout
directly).Open Questions
I've left comments on things I'm not 100% sure what to do with, but the biggest open question is do we leave the
LayoutMode
enum around at all. I've opted to leave it in, because we can continue to leverage this to test and roll out any future improvements to Blueprint's layout engine, for example cross-layout caching, or further optimizations to the caffeinated layout contract.Next Steps
After this lands, I'll take care of deleting the now dead code from Market, and POS.