1
0
Fork 0
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:
Jonah Graham 2014-12-11 20:54:21 +00:00
parent e0e7f9c1d7
commit f708de3801

View file

@ -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));