mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 20:01:11 +00:00
Streamlined isEqual: per discussion with Fred
This commit is contained in:
parent
d3dc69d805
commit
215842efcc
1 changed files with 2 additions and 7 deletions
|
@ -348,13 +348,8 @@ static NSNotificationCenter *nc = nil;
|
|||
|
||||
- (BOOL) isEqual: (NSLayoutConstraint *)constraint
|
||||
{
|
||||
BOOL result = NO;
|
||||
|
||||
if (YES == [super isEqual: constraint])
|
||||
{
|
||||
result = YES;
|
||||
}
|
||||
else
|
||||
BOOL result = [super isEqual: constraint];
|
||||
if (result == NO)
|
||||
{
|
||||
result = (_firstItem == [constraint firstItem] &&
|
||||
_secondItem == [constraint secondItem] &&
|
||||
|
|
Loading…
Reference in a new issue