remove dead code (#5611)

This commit is contained in:
Daming 2020-10-02 00:11:02 +08:00 committed by GitHub
parent f39c0dd274
commit 6eda8346bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -18,9 +18,6 @@
package org.apache.skywalking.apm.agent.core.context;
import java.util.ArrayList;
import java.util.List;
import org.apache.skywalking.apm.agent.core.context.ids.DistributedTraceId;
import org.apache.skywalking.apm.agent.core.context.ids.NewDistributedTraceId;
public enum MockContextSnapshot {
@ -29,11 +26,14 @@ public enum MockContextSnapshot {
private ContextSnapshot contextSnapshot;
MockContextSnapshot() {
List<DistributedTraceId> distributedTraceIds = new ArrayList<DistributedTraceId>();
distributedTraceIds.add(new NewDistributedTraceId());
contextSnapshot = new ContextSnapshot(
"1, 2, 3", 1, new NewDistributedTraceId(), "/for-test-entryOperationName", new CorrelationContext(), new ExtensionContext());
"1, 2, 3",
1,
new NewDistributedTraceId(),
"/for-test-entryOperationName",
new CorrelationContext(),
new ExtensionContext()
);
}
public ContextSnapshot mockContextSnapshot() {