mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-30 12:25:35 +02:00
Delete unreachable code
Remove if block on !singleLine within an if (singleLine) test. The code has been unreachable since 2006. Change-Id: Ie720716a58f892371e3ae5b810dae6e77736324f Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
This commit is contained in:
parent
e0e7f9c1d7
commit
f708de3801
1 changed files with 1 additions and 6 deletions
|
@ -1542,12 +1542,7 @@ public class DefaultCFoldingStructureProvider implements ICFoldingStructureProvi
|
|||
if (!isLineStart) {
|
||||
continue;
|
||||
}
|
||||
if (!singleLine) {
|
||||
singleLine = lineRegion.getOffset() + lineRegion.getLength() >= partition.getOffset() + partition.getLength();
|
||||
if (!singleLine) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (startLine < 0 || lineNr - endLine > 1) {
|
||||
if (startLine >= 0 && endLine - startLine >= fMinCommentLines) {
|
||||
Position projection = createCommentPosition(alignRegion(commentRange, ctx, true));
|
||||
|
|
Loading…
Add table
Reference in a new issue