Skip to content

Commit

Permalink
return > goto
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Jan 20, 2025
1 parent 9241396 commit d6c5c87
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/SixLabors.Fonts/TextLayout.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ private static IEnumerable<GlyphLayout> LayoutLineHorizontal(
penLocation.Y += yLineAdvance;
boxLocation.X = originX;
boxLocation.Y += advanceY;
goto end;
return glyphs;
}

int j = 0;
Expand Down Expand Up @@ -440,7 +440,6 @@ private static IEnumerable<GlyphLayout> LayoutLineHorizontal(
boxLocation.Y += advanceY;
}

end:
return glyphs;
}

Expand Down Expand Up @@ -552,7 +551,7 @@ private static IEnumerable<GlyphLayout> LayoutLineVertical(
boxLocation.Y = originY;
penLocation.X += xLineAdvance;
penLocation.Y = originY;
goto end;
return glyphs;
}

int j = 0;
Expand Down Expand Up @@ -599,7 +598,6 @@ private static IEnumerable<GlyphLayout> LayoutLineVertical(
penLocation.X += xLineAdvance;
}

end:
return glyphs;
}

Expand Down Expand Up @@ -711,7 +709,7 @@ private static IEnumerable<GlyphLayout> LayoutLineVerticalMixed(
boxLocation.Y = originY;
penLocation.X += xLineAdvance;
penLocation.Y = originY;
goto end;
return glyphs;
}

if (data.IsTransformed)
Expand Down Expand Up @@ -787,7 +785,6 @@ private static IEnumerable<GlyphLayout> LayoutLineVerticalMixed(
penLocation.X += xLineAdvance;
}

end:
return glyphs;
}

Expand Down

0 comments on commit d6c5c87

Please sign in to comment.