Skip to content

Commit 28a323c

Browse files
remove unused methods
1 parent b3d399b commit 28a323c

3 files changed

Lines changed: 0 additions & 32 deletions

File tree

dd-java-agent/agent-profiling/profiling-ddprof/src/main/java/com/datadog/profiling/ddprof/DatadogProfilingIntegration.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ public class DatadogProfilingIntegration implements ProfilingContextIntegration
1717
private static final boolean WALLCLOCK_ENABLED =
1818
DatadogProfilerConfig.isWallClockProfilerEnabled();
1919

20-
private static final boolean QUEUEING_TIME_ENABLED =
21-
WALLCLOCK_ENABLED && DatadogProfilerConfig.isQueueingTimeEnabled();
22-
2320
@Override
2421
public void onAttach() {
2522
if (WALLCLOCK_ENABLED) {
@@ -67,12 +64,4 @@ public ProfilingContextAttribute createContextAttribute(String attribute) {
6764
public ProfilingScope newScope() {
6865
return new DatadogProfilingScope(DDPROF);
6966
}
70-
71-
@Override
72-
public boolean isQueuingTimeEnabled() {
73-
return QUEUEING_TIME_ENABLED;
74-
}
75-
76-
@Override
77-
public void recordQueueingTime(long duration) {}
7867
}

dd-java-agent/testing/src/main/groovy/datadog/trace/agent/test/TestProfilingContextIntegration.groovy

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ class TestProfilingContextIntegration implements ProfilingContextIntegration {
3232
void setContext(long rootSpanId, long spanId) {
3333
}
3434

35-
@Override
36-
boolean isQueuingTimeEnabled() {
37-
return true
38-
}
39-
40-
@Override
41-
void recordQueueingTime(long duration) {
42-
}
43-
4435
@Override
4536
ProfilingContextAttribute createContextAttribute(String attribute) {
4637
return ProfilingContextAttribute.NoOp.INSTANCE

internal-api/src/main/java/datadog/trace/bootstrap/instrumentation/api/ProfilingContextIntegration.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ public interface ProfilingContextIntegration extends Profiling {
1717

1818
void setContext(long rootSpanId, long spanId);
1919

20-
boolean isQueuingTimeEnabled();
21-
22-
void recordQueueingTime(long duration);
23-
2420
default int encode(CharSequence constant) {
2521
return 0;
2622
}
@@ -54,13 +50,5 @@ public void clearContext() {}
5450

5551
@Override
5652
public void setContext(long rootSpanId, long spanId) {}
57-
58-
@Override
59-
public boolean isQueuingTimeEnabled() {
60-
return false;
61-
}
62-
63-
@Override
64-
public void recordQueueingTime(long duration) {}
6553
}
6654
}

0 commit comments

Comments
 (0)