Skip to content

Commit b044d37

Browse files
committed
Remove unused local variable
Used the new JDT cleanup to remove unused local variables
1 parent 965e8e9 commit b044d37

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

bundles/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/internal/ui/refactoring/history/RefactoringPropertyPage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ public final void widgetSelected(final SelectionEvent event) {
197197
fShareHistoryButton.setLayoutData(data);
198198
fShareHistoryButton.setSelection(hasSharedRefactoringHistory());
199199

200-
@SuppressWarnings("unused")
201-
Label label= new Label(composite, SWT.NONE);
200+
new Label(composite, SWT.NONE);
202201

203202
final IProject project= getCurrentProject();
204203
if (project != null) {

bundles/org.eclipse.search/search/org/eclipse/search/internal/ui/text/ReplaceConfigurationPage.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ public void createControl(Composite parent) {
127127
new char[0],
128128
true);
129129

130-
@SuppressWarnings("unused")
131-
Label label = new Label(result, SWT.NONE);
130+
new Label(result, SWT.NONE);
132131
fReplaceWithRegex= new Button(result, SWT.CHECK);
133132
fReplaceWithRegex.setText(SearchMessages.ReplaceConfigurationPage_isRegex_label);
134133
fReplaceWithRegex.addSelectionListener(new SelectionAdapter() {

bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,7 @@ public void widgetSelected(SelectionEvent e) {
339339
});
340340
setGridData(fSelectAllButton, SWT.FILL, true, SWT.FILL, false);
341341

342-
@SuppressWarnings("unused")
343-
Label filler = new Label(panel, SWT.NONE); // filler
342+
new Label(panel, SWT.NONE);
344343

345344
fReplaceFindButton = makeButton(panel, FindReplaceMessages.FindReplace_ReplaceFindButton_label, 103, false,
346345
new SelectionAdapter() {

0 commit comments

Comments
 (0)