From 10955abe6ccb8b64b8e8adbcc0d62c94935d0092 Mon Sep 17 00:00:00 2001 From: Arthur Giroux Date: Sun, 6 Aug 2023 16:47:07 +0200 Subject: [PATCH] Removed unused local variable "lineIndex" that was generating a warning. --- HexFiend/HFRepresenterTextView.m | 2 -- 1 file changed, 2 deletions(-) diff --git a/HexFiend/HFRepresenterTextView.m b/HexFiend/HFRepresenterTextView.m index 7fcbd0c..89c50a1 100644 --- a/HexFiend/HFRepresenterTextView.m +++ b/HexFiend/HFRepresenterTextView.m @@ -1206,7 +1206,6 @@ static size_t unionAndCleanLists(NSRect *rectList, id *valueList, size_t count) /* Start us off with the horizontal inset and move the baseline down by the ascender so our glyphs just graze the top of our view */ textTransform.tx += [self horizontalContainerInset]; textTransform.ty += [fontObject ascender] - lineHeight * [self verticalOffset]; - NSUInteger lineIndex = 0; const NSUInteger maxGlyphCount = [self maximumGlyphCountForByteCount:bytesPerLine]; NEW_ARRAY(struct HFGlyph_t, glyphs, maxGlyphCount); NEW_ARRAY(CGSize, advances, maxGlyphCount); @@ -1269,7 +1268,6 @@ static size_t unionAndCleanLists(NSRect *rectList, id *valueList, size_t count) else if (NSMinY(lineRectInBoundsSpace) > NSMaxY(clip)) { break; } - lineIndex++; } FREE_ARRAY(glyphs); FREE_ARRAY(advances);