mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-09 22:20:41 +00:00
Fix building test / profile under Xcode 7
It is strictly enforcing this unused variable (when asserts are compiled out).
This commit is contained in:
parent
a6dba104df
commit
a8924a2977
@ -28,9 +28,11 @@ extern BOOL CGPointIsNull(CGPoint point)
|
|||||||
sublayouts:(NSArray *)sublayouts
|
sublayouts:(NSArray *)sublayouts
|
||||||
{
|
{
|
||||||
ASDisplayNodeAssert(layoutableObject, @"layoutableObject is required.");
|
ASDisplayNodeAssert(layoutableObject, @"layoutableObject is required.");
|
||||||
|
#if DEBUG
|
||||||
for (ASLayout *sublayout in sublayouts) {
|
for (ASLayout *sublayout in sublayouts) {
|
||||||
ASDisplayNodeAssert(!CGPointIsNull(sublayout.position), @"Invalid position is not allowed in sublayout.");
|
ASDisplayNodeAssert(!CGPointIsNull(sublayout.position), @"Invalid position is not allowed in sublayout.");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
ASLayout *l = [super new];
|
ASLayout *l = [super new];
|
||||||
if (l) {
|
if (l) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user