Remove unused field and method
MODIFY
dd-java-agent/instrumentation/java-concurrent/src/main/java/datadog/trace/instrumentation/java/concurrent/ExecutorInstrumentation.java
dd-java-agent/instrumentation/java-concurrent/src/main/java/datadog/trace/instrumentation/java/concurrent/ExecutorInstrumentation.java
@@ -340,10 +340,6 @@ public final class ExecutorInstrumentation extends Instrumenter.Default {
private static final Map<Class<?>, Field> fieldCache = new ConcurrentHashMap<>();
private static final String[] wrapperFields = {"runnable", "callable"};
- public static boolean safeToWrap(final Future<?> f) {
- return null != getDatadogWrapper(f);
- }
-
public static DatadogWrapper getDatadogWrapper(final Future<?> f) {
final Field field;
if (fieldCache.containsKey(f.getClass())) {

MODIFY
dd-java-agent/instrumentation/spymemcached-2.12/src/main/java/datadog/trace/instrumentation/spymemcached/MemcachedClientInstrumentation.java
dd-java-agent/instrumentation/spymemcached-2.12/src/main/java/datadog/trace/instrumentation/spymemcached/MemcachedClientInstrumentation.java
@@ -4,7 +4,6 @@ import static datadog.trace.agent.tooling.ClassLoaderMatcher.classLoaderHasClass
import static net.bytebuddy.matcher.ElementMatchers.*;
import com.google.auto.service.AutoService;
-import datadog.trace.agent.tooling.HelperInjector;
import datadog.trace.agent.tooling.Instrumenter;
import datadog.trace.bootstrap.CallDepthThreadLocalMap;
import io.opentracing.util.GlobalTracer;
@@ -25,8 +24,6 @@ public final class MemcachedClientInstrumentation extends Instrumenter.Default {
private static final String HELPERS_PACKAGE =
MemcachedClientInstrumentation.class.getPackage().getName();
- public static final HelperInjector HELPER_INJECTOR = new HelperInjector();
-
public MemcachedClientInstrumentation() {
super("spymemcached");
}

Remove unused field and method