Skip to content

Commit 2b0913d

Browse files
authored
[CQ] remove deprecated Disposer.isDisposed invocation (#8377)
Removes deprecated `Disposer.isDisposed` invocation. (Invoking method is unused.) Verifier output: ``` #Deprecated method com.intellij.openapi.util.Disposer.isDisposed(Disposable) invocation Deprecated method com.intellij.openapi.util.Disposer.isDisposed(com.intellij.openapi.Disposable disposable) : boolean is invoked in io.flutter.vmService.VMServiceManager.hasServiceExtension(String, Consumer, Disposable) : void ``` --- - [x] I’ve reviewed the contributor guide and applied the relevant portions to this PR. <details> <summary>Contribution guidelines:</summary><br> - See our [contributor guide]([https://github.com/dart-lang/sdk/blob/main/CONTRIBUTING.md](https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview) for general expectations for PRs. - Larger or significant changes should be discussed in an issue before creating a PR. - Dart contributions to our repos should follow the [Dart style guide](https://dart.dev/guides/language/effective-dart) and use `dart format`. - Java and Kotlin contributions should strive to follow Java and Kotlin best practices ([discussion](#8098)). </details>
1 parent 9d770c6 commit 2b0913d

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/io/flutter/vmService/VMServiceManager.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import com.google.gson.JsonElement;
1010
import com.google.gson.JsonObject;
1111
import com.intellij.openapi.Disposable;
12-
import com.intellij.openapi.util.Disposer;
1312
import com.intellij.openapi.util.text.StringUtil;
1413
import io.flutter.run.daemon.FlutterApp;
1514
import io.flutter.utils.EventStream;
@@ -415,12 +414,6 @@ public boolean hasServiceExtensionNow(String name) {
415414
}
416415
}
417416

418-
public void hasServiceExtension(String name, Consumer<Boolean> onData, Disposable parentDisposable) {
419-
if (!Disposer.isDisposed(parentDisposable)) {
420-
Disposer.register(parentDisposable, hasServiceExtension(name, onData));
421-
}
422-
}
423-
424417
public boolean hasRegisteredService(String name) {
425418
return registeredServices.contains(name);
426419
}

0 commit comments

Comments
 (0)