Skip to content

Commit

Permalink
Remove unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
qmfrederik committed Mar 31, 2024
1 parent 2372b76 commit 3c9792a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions Source/GSHorizontalTypesetter.m
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,6 @@ -(int) layoutLineNewParagraph: (BOOL)newParagraph
CGFloat f_ascender = [f ascender], f_descender = -[f descender];

NSGlyph last_glyph = NSNullGlyph;
NSPoint last_p;

unsigned int first_glyph;
line_frag_t *lf = line_frags;
Expand All @@ -759,7 +758,7 @@ -(int) layoutLineNewParagraph: (BOOL)newParagraph
BOOL prev_had_non_nominal_width;


last_p = p = NSMakePoint(0, 0);
p = NSMakePoint(0, 0);

g = cache;
first_glyph = 0;
Expand Down Expand Up @@ -1035,9 +1034,9 @@ the first tab would move (exactly) to the next tab
g->nominal = NO;
p.x += last_p.x;
p.y += last_p.y;
last_p = g->pos = p;
}*/

last_p = g->pos = p;
/* Only the width is used. */
p.x += g->size.width;
}
Expand Down Expand Up @@ -1108,7 +1107,7 @@ ensures that typesetting will never get stuck (ie. if the text
if (lf->last_glyph <= first_glyph)
lf->last_glyph = i + 1;

last_p = p = NSMakePoint(0, 0);
p = NSMakePoint(0, 0);
i = lf->last_glyph;
g = cache + i;
/* The -1 is always valid since there's at least one glyph in the
Expand Down
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 3c9792a

Please sign in to comment.