From f0d3e38abfc697a423fc99be44148de46975797e Mon Sep 17 00:00:00 2001 From: Yaron Kaikov Date: Thu, 21 Dec 2023 11:42:09 +0200 Subject: [PATCH] GuavaCompatibility::getHost(): remove since it's not been used --- .../com/datastax/driver/core/GuavaCompatibility.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/driver-core/src/main/java/com/datastax/driver/core/GuavaCompatibility.java b/driver-core/src/main/java/com/datastax/driver/core/GuavaCompatibility.java index 069f550b049..7437e6079f9 100644 --- a/driver-core/src/main/java/com/datastax/driver/core/GuavaCompatibility.java +++ b/driver-core/src/main/java/com/datastax/driver/core/GuavaCompatibility.java @@ -189,15 +189,6 @@ public abstract ListenableFuture transformAsync( * HostAndPort.getHost} starting with Guava 20.0; it has been completely removed in Guava 22.0. */ @SuppressWarnings("JavaReflectionMemberAccess") - public String getHost(HostAndPort hostAndPort) { - try { - // Guava >= 20.0 - return (String) HostAndPort.class.getMethod("getHost").invoke(hostAndPort); - } catch (Exception e) { - // Guava < 22.0 - return hostAndPort.getHostText(); - } - } private static GuavaCompatibility selectImplementation() { if (isGuava_19_0_OrHigher()) {