Remove unused code
This commit is contained in:
parent
3a9ef21106
commit
d45b571996
|
@ -39,12 +39,6 @@ public abstract class BaseDecorator {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AgentScope afterStart(final AgentScope scope) {
|
|
||||||
assert scope != null;
|
|
||||||
afterStart(scope.span());
|
|
||||||
return scope;
|
|
||||||
}
|
|
||||||
|
|
||||||
public AgentSpan afterStart(final AgentSpan span) {
|
public AgentSpan afterStart(final AgentSpan span) {
|
||||||
assert span != null;
|
assert span != null;
|
||||||
if (spanType() != null) {
|
if (spanType() != null) {
|
||||||
|
|
|
@ -126,12 +126,6 @@ class BaseDecoratorTest extends DDSpecification {
|
||||||
def span = Mock(AgentSpan)
|
def span = Mock(AgentSpan)
|
||||||
def scope = Mock(AgentScope)
|
def scope = Mock(AgentScope)
|
||||||
|
|
||||||
when:
|
|
||||||
decorator.afterStart(scope)
|
|
||||||
|
|
||||||
then:
|
|
||||||
1 * scope.span() >> span
|
|
||||||
|
|
||||||
when:
|
when:
|
||||||
decorator.onError(scope, null)
|
decorator.onError(scope, null)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue