mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 17:56:01 +02:00
Cosmetics.
This commit is contained in:
parent
9c5bcf4e4f
commit
a84636dec5
2 changed files with 8 additions and 10 deletions
|
@ -34,7 +34,6 @@ import org.eclipse.cdt.internal.ui.refactoring.Container;
|
|||
* Helper class to support operations concerning a selection.
|
||||
*
|
||||
* @author Mirko Stocker, Lukas Felber
|
||||
*
|
||||
*/
|
||||
public class SelectionHelper {
|
||||
|
||||
|
@ -46,8 +45,8 @@ public class SelectionHelper {
|
|||
return null;
|
||||
}
|
||||
|
||||
public static IASTSimpleDeclaration findFirstSelectedDeclaration(final Region textSelection, IASTTranslationUnit translationUnit) {
|
||||
|
||||
public static IASTSimpleDeclaration findFirstSelectedDeclaration(final Region textSelection,
|
||||
IASTTranslationUnit translationUnit) {
|
||||
final Container<IASTSimpleDeclaration> container = new Container<IASTSimpleDeclaration>();
|
||||
|
||||
translationUnit.accept(new ASTVisitor() {
|
||||
|
@ -104,7 +103,6 @@ public class SelectionHelper {
|
|||
}
|
||||
|
||||
protected static Region createExpressionPosition(IASTNode expression) {
|
||||
|
||||
int start = Integer.MAX_VALUE;
|
||||
int nodeLength = 0;
|
||||
IASTNodeLocation[] nodeLocations = expression.getNodeLocations();
|
||||
|
|
Loading…
Add table
Reference in a new issue