diff options
author | Lars Vogel | 2019-06-17 09:35:49 +0000 |
---|---|---|
committer | Lars Vogel | 2019-06-18 13:22:14 +0000 |
commit | 59855f91b09ce751c87f3baebcad01936e2c1377 (patch) | |
tree | c77df0817a548d985f8c5d372f9d4ac730a00984 /org.eclipse.help.ui | |
parent | 12f5f97ce82861982000009e75cf4a0c7af8ee8a (diff) | |
download | eclipse.platform.ua-59855f91b09ce751c87f3baebcad01936e2c1377.tar.gz eclipse.platform.ua-59855f91b09ce751c87f3baebcad01936e2c1377.tar.xz eclipse.platform.ua-59855f91b09ce751c87f3baebcad01936e2c1377.zip |
Remove redundant block
Change-Id: Ib0fca9ed315ff118e330199a5f0c8c1037673b3c
Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
Diffstat (limited to 'org.eclipse.help.ui')
-rw-r--r-- | org.eclipse.help.ui/src/org/eclipse/help/ui/internal/StyledLineWrapper.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/StyledLineWrapper.java b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/StyledLineWrapper.java index 16f023d03..a646d604e 100644 --- a/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/StyledLineWrapper.java +++ b/org.eclipse.help.ui/src/org/eclipse/help/ui/internal/StyledLineWrapper.java @@ -181,14 +181,13 @@ public class StyledLineWrapper implements StyledTextContent { // if we reached the end, stop if (start >= textChars.length) break; - { // see if the next character is an LF - ch = textChars[start]; - if (ch == SWT.LF) { - start++; - i++; - if (start >= textChars.length) - break; - } + // see if the next character is an LF + ch = textChars[start]; + if (ch == SWT.LF) { + start++; + i++; + if (start >= textChars.length) + break; } } else if (ch == SWT.LF) { lines.add(new String(textChars, start, i - start)); |