Skip to content

Commit

Permalink
Remove unused variables (#247)
Browse files Browse the repository at this point in the history
Fixes a compiler warnings
  • Loading branch information
qmfrederik authored Apr 1, 2024
1 parent 1c26da1 commit 4470a15
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Source/GSToolbarCustomizationPalette.m
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ - (void) layout
float vAccumulator = 0.0;
NSEnumerator *e = [[self subviews] objectEnumerator];
NSView *layoutedView = nil;
int index = 0;

// Loop over all subviews
while ((layoutedView = [e nextObject]) != nil)
Expand Down Expand Up @@ -137,7 +136,6 @@ - (void) layout
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
Expand Down

0 comments on commit 4470a15

Please sign in to comment.