Remove unused variables (#247)

Fixes a compiler warnings
This commit is contained in:
Frederik Carlier 2024-04-01 21:05:46 +02:00 committed by GitHub
parent 1c26da1f27
commit 4470a157d7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -100,7 +100,6 @@
float vAccumulator = 0.0;
NSEnumerator *e = [[self subviews] objectEnumerator];
NSView *layoutedView = nil;
int index = 0;
// Loop over all subviews
while ((layoutedView = [e nextObject]) != nil)
@ -137,7 +136,6 @@
maxHeight - vAccumulator)];
[layoutedView setAutoresizingMask:NSViewMinYMargin];
hAccumulator += width;
index++;
}
maxHeight -= vAccumulator; // adjust for final row
if (maxHeight != 0) // need to grow (or shrink) the window to accommodate more (or fewer) items