Tidied up some inefficient code that was causing window to be checked much

more often that needed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5344 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-12-01 12:02:09 +00:00
parent fc849e3129
commit f2bcb34b09
4 changed files with 49 additions and 9 deletions

View file

@ -271,7 +271,6 @@ GSSetDragTypes(NSView* obj, NSArray *types)
[sub_views addObject: aView];
_rFlags.has_subviews = 1;
[aView resetCursorRects];
[aView setNeedsDisplay: YES];
RELEASE(aView);
}
@ -310,7 +309,6 @@ GSSetDragTypes(NSView* obj, NSArray *types)
[sub_views insertObject: aView atIndex: index+1];
_rFlags.has_subviews = 1;
[aView resetCursorRects];
[aView setNeedsDisplay: YES];
RELEASE(aView);
}
@ -413,7 +411,6 @@ GSSetDragTypes(NSView* obj, NSArray *types)
if ([window firstResponder] == self)
[window makeFirstResponder: window];
[super_view setNeedsDisplayInRect: frame];
RETAIN(self);
[super_view->sub_views removeObjectIdenticalTo: self];
if ([super_view->sub_views count] == 0)
@ -448,7 +445,6 @@ GSSetDragTypes(NSView* obj, NSArray *types)
[sub_views addObject: newView];
_rFlags.has_subviews = 1;
[newView resetCursorRects];
[newView setNeedsDisplay: YES];
RELEASE(newView);
}
else if ([sub_views indexOfObjectIdenticalTo: oldView] != NSNotFound)
@ -482,7 +478,6 @@ GSSetDragTypes(NSView* obj, NSArray *types)
[sub_views addObject: newView];
_rFlags.has_subviews = 1;
[newView resetCursorRects];
[newView setNeedsDisplay: YES];
RELEASE(newView);
}
}