File tree Expand file tree Collapse file tree 2 files changed +0
-11
lines changed
driver/src/main/java/org/neo4j/driver/internal Expand file tree Collapse file tree 2 files changed +0
-11
lines changed Original file line number Diff line number Diff line change 46
46
import org .neo4j .driver .v1 .exceptions .ClientException ;
47
47
import org .neo4j .driver .v1 .types .TypeSystem ;
48
48
49
- import static org .neo4j .driver .internal .util .Futures .completedWithFalse ;
50
49
import static org .neo4j .driver .internal .util .Futures .completedWithNull ;
51
50
import static org .neo4j .driver .internal .util .Futures .failedFuture ;
52
51
import static org .neo4j .driver .v1 .Values .value ;
@@ -275,10 +274,6 @@ public TypeSystem typeSystem()
275
274
276
275
CompletionStage <Boolean > currentConnectionIsOpen ()
277
276
{
278
- if ( connectionStage == null )
279
- {
280
- return completedWithFalse ();
281
- }
282
277
return connectionStage .handle ( ( connection , error ) ->
283
278
error == null && // no acquisition error
284
279
connection != null && // some connection has actually been acquired
Original file line number Diff line number Diff line change 35
35
public final class Futures
36
36
{
37
37
private static final CompletableFuture <?> COMPLETED_WITH_NULL = completedFuture ( null );
38
- private static final CompletableFuture <Boolean > COMPLETED_WITH_FALSE = completedFuture ( false );
39
38
40
39
private Futures ()
41
40
{
@@ -47,11 +46,6 @@ public static <T> CompletableFuture<T> completedWithNull()
47
46
return (CompletableFuture ) COMPLETED_WITH_NULL ;
48
47
}
49
48
50
- public static CompletableFuture <Boolean > completedWithFalse ()
51
- {
52
- return COMPLETED_WITH_FALSE ;
53
- }
54
-
55
49
public static <T > CompletionStage <T > asCompletionStage ( io .netty .util .concurrent .Future <T > future )
56
50
{
57
51
CompletableFuture <T > result = new CompletableFuture <>();
You can’t perform that action at this time.
0 commit comments