Skip to content

Commit d3bea0d

Browse files
datho7561akurtakov
authored andcommitted
Remove unused variable
I've just been staring at this code for a few days and it's starting to bother me. Should fix 1 warning Signed-off-by: David Thompson <[email protected]>
1 parent 00f5982 commit d3bea0d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

org.eclipse.wildwebdeveloper.xml/src/org/eclipse/wildwebdeveloper/xml/internal/autoclose/XMLAutoCloseTagReconciler.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.eclipse.lsp4e.LanguageServers;
2929
import org.eclipse.lsp4j.Position;
3030
import org.eclipse.lsp4j.Range;
31-
import org.eclipse.lsp4j.TextDocumentIdentifier;
3231
import org.eclipse.lsp4j.TextDocumentPositionParams;
3332
import org.eclipse.swt.widgets.Display;
3433
import org.eclipse.wildwebdeveloper.xml.internal.Activator;
@@ -116,8 +115,7 @@ private void autoInsert(DocumentEvent event) {
116115
if (uri == null) {
117116
return;
118117
}
119-
120-
TextDocumentIdentifier identifier = new TextDocumentIdentifier(uri.toString());
118+
121119
LanguageServers.forDocument(document).collectAll((w, ls) -> CompletableFuture.completedFuture(ls))
122120
.thenAccept(lss -> lss.stream().filter(XMLLanguageServerAPI.class::isInstance)
123121
.map(XMLLanguageServerAPI.class::cast).findAny().ifPresent(info -> {

0 commit comments

Comments
 (0)